diff --git a/striker-ui/components/ProgressBar.tsx b/striker-ui/components/ProgressBar.tsx index 359ad54c..f30ca4fc 100644 --- a/striker-ui/components/ProgressBar.tsx +++ b/striker-ui/components/ProgressBar.tsx @@ -1,14 +1,16 @@ import { makeStyles, withStyles } from '@material-ui/core/styles'; -import { LinearProgress, Typography } from '@material-ui/core'; +import { LinearProgress } from '@material-ui/core'; import { PURPLE_OFF, + BLUE, PANEL_BACKGROUND, - TEXT, } from '../lib/consts/DEFAULT_THEME'; +const completed = 100; + const BorderLinearProgress = withStyles({ root: { - height: 25, + height: 10, borderRadius: 3, }, colorPrimary: { @@ -16,48 +18,38 @@ const BorderLinearProgress = withStyles({ }, bar: { borderRadius: 3, - backgroundColor: PURPLE_OFF, }, })(LinearProgress); -const useStyles = makeStyles((theme) => ({ - root: { - flexGrow: 1, - }, - margin: { - margin: theme.spacing(1), +const useStyles = makeStyles(() => ({ + barOk: { + backgroundColor: BLUE, }, - leftLabel: { - position: 'absolute', - color: TEXT, - top: 0, - left: '2%', - }, - centerLabel: { - position: 'absolute', - color: TEXT, - top: 0, - left: '70%', - }, - rightLabel: { - position: 'absolute', - color: TEXT, - top: 0, - left: '90%', + barInProgress: { + backgroundColor: PURPLE_OFF, }, })); -const ProgressBar = ({ allocated }: { allocated: number }): JSX.Element => { +const ProgressBar = ({ + progressPercentage, +}: { + progressPercentage: number; +}): JSX.Element => { const classes = useStyles(); - return ( -
- - 53.5% - 570MiB/s - 1:15:30 + <> + -
+ ); };