mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-20 10:47:18 +03:00
removes copy & pasted notes and unused styles
This commit is contained in:
parent
21154aa444
commit
1c9260aba7
@ -4,9 +4,6 @@ import * as Strings from "~/common/strings";
|
||||
|
||||
import { css } from "@emotion/core";
|
||||
|
||||
// NOTE(jim): Consolidate if used elsewhere on the client (Not node_common)
|
||||
const MAX_IN_BYTES = 10737418240 * 4;
|
||||
|
||||
const STYLES_CONTAINER = css`
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 0 0 1px ${Constants.system.lightBorder} inset, 0 0 40px 0 ${Constants.system.shadow};
|
||||
@ -19,30 +16,6 @@ const STYLES_CONTAINER = css`
|
||||
}
|
||||
`;
|
||||
|
||||
const STYLES_DATA = css`
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
`;
|
||||
|
||||
const STYLES_DATA_METER_BASE = css`
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 3px;
|
||||
background-color: ${Constants.system.foreground};
|
||||
overflow: hidden;
|
||||
`;
|
||||
|
||||
const STYLES_DATA_METER = css`
|
||||
flex-shrink: 0;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
border-radius: 3px 0px 0px 3px;
|
||||
`;
|
||||
|
||||
const STYLES_ROW = css`
|
||||
font-family: ${Constants.font.code};
|
||||
color: ${Constants.system.darkGray};
|
||||
@ -108,6 +81,7 @@ export const DataMeterBar = (props) => {
|
||||
const percentagePdf = props.stats.pdfBytes / props.bytes;
|
||||
const percentageAudio = props.stats.audioBytes / props.bytes;
|
||||
const percentageFreeSpace = props.bytes - props.maximumBytes;
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<div css={STYLES_STATS_ROW}>
|
||||
|
Loading…
Reference in New Issue
Block a user