diff --git a/components/core/DataMeter.js b/components/core/DataMeter.js index f5953f0d..59a81d99 100644 --- a/components/core/DataMeter.js +++ b/components/core/DataMeter.js @@ -14,21 +14,12 @@ const STYLES_CONTAINER = css` padding: 32px; max-width: 100%; width: 100%; - @media (max-width: ${Constants.sizes.mobile}px) { padding: 24px; } `; 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; @@ -40,17 +31,13 @@ const STYLES_DATA_METER_BASE = css` const STYLES_DATA_METER = css` flex-shrink: 0; - position: absolute; height: 16px; - top: 0px; - left: 0px; - border-radius: 3px 0px 0px 3px; + background-color: ${Constants.system.brand}; `; const STYLES_ROW = css` display: flex; align-items: flex-end; - position: absolute; justify-content: space-between; font-family: ${Constants.font.code}; color: ${Constants.system.darkGray}; @@ -71,8 +58,7 @@ const STYLES_STATS_ROW = css` const STYLES_LEFT = css` min-width: 10%; - width: 100%; - border-radius: 15px 50px 30px 5px; + width: 100% ""; `; const STYLES_RIGHT = css` @@ -96,56 +82,26 @@ const STYLES_NOTE = css` margin-bottom: 4px; `; -const STYLES_DATA_METER_KEY_WRAPPER = css` - display: inline-block; -`; -const STYLES_DATA_METER_KEY_SQUARE = css` - display: inline-block; - border-radius: 3px; - background: #73ad21; - width: 12px; - height: 12px; - margin-right: 4px; - vertical-align: middle; -`; -const STYLES_DATA_METER_KEY_LABEL = css` - display: inline-block; - margin-right: 16px; - vertical-align: middle; -`; - export const DataMeterBar = (props) => { const percentage = props.bytes / props.maximumBytes; - console.log(props.bytes); + return (
-
+
{props.leftLabel}
{props.rightLabel}
+
- {" "} -
+
); @@ -158,88 +114,10 @@ export const DataMeter = (props) => { {Strings.bytesToSize(props.stats.bytes)} of {Strings.bytesToSize(props.stats.maximumBytes)}{" "} used
- -
-
- - - - - -
-
-
-
- {" "} -
-
Images
-
-
-
- {" "} -
-
Videos
-
-
-
- {" "} -
-
Books
-
-
-
- {" "} -
-
PDF
-
-
-
- {" "} -
-
Audio
-
-
- +
50GB coming soon with email verification
); - console.log(props.stats.bytes); }; export default DataMeter;