aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 04:51:18 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-31 04:51:18 +0800
commit13b41c976b42983f5869813715313c2da22abcbc (patch)
treefc9acb1be36957f4a7fa0be1921bc80003ed5624 /packages/instant/src/components
parentbcb633e5cbcbfdfdfe8c91170abfca7dbb003417 (diff)
downloaddexon-sol-tools-13b41c976b42983f5869813715313c2da22abcbc.tar.gz
dexon-sol-tools-13b41c976b42983f5869813715313c2da22abcbc.tar.zst
dexon-sol-tools-13b41c976b42983f5869813715313c2da22abcbc.zip
Placeholder for estimated time
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/progress_bar.tsx15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/instant/src/components/progress_bar.tsx b/packages/instant/src/components/progress_bar.tsx
index 5b5968703..d5d1f3ded 100644
--- a/packages/instant/src/components/progress_bar.tsx
+++ b/packages/instant/src/components/progress_bar.tsx
@@ -3,18 +3,31 @@ import * as React from 'react';
import { ColorOption } from '../style/theme';
import { Container } from './ui/container';
+import { Flex } from './ui/flex';
+import { Text } from './ui/text';
export interface ProgressBarProps {
percentageDone: number;
+ estTimeMs: number;
+ elapsedTimeMs: number;
}
+
+// TODO: Est time to minutes with suffix
+// TODO: time in minutes
export const ProgressBar: React.StatelessComponent<ProgressBarProps> = props => (
<Container padding="20px 20px 0px 20px" width="100%">
+ <Container marginBottom="5px">
+ <Flex justify="space-between">
+ <Text>Est. Time ({props.estTimeMs / 1000} seconds)</Text>
+ <Text>{props.elapsedTimeMs / 1000}</Text>
+ </Flex>
+ </Container>
<Container width="100%" backgroundColor={ColorOption.lightGrey} borderRadius="6px">
<Container
width={`${props.percentageDone}%`}
backgroundColor={ColorOption.primaryColor}
borderRadius="6px"
- height="10px"
+ height="6px"
/>
</Container>
</Container>