From 9c40cf6f284acd5ae7441826f9678f42e7ac0aab Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 22 Sep 2021 01:03:25 -0400 Subject: [PATCH] fix infiltration timer --- src/Infiltration/ui/GameTimer.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Infiltration/ui/GameTimer.tsx b/src/Infiltration/ui/GameTimer.tsx index 40828948e..b7ee53c30 100644 --- a/src/Infiltration/ui/GameTimer.tsx +++ b/src/Infiltration/ui/GameTimer.tsx @@ -1,12 +1,16 @@ import LinearProgress from "@mui/material/LinearProgress"; import React, { useState, useEffect } from "react"; -import withStyles from '@mui/styles/withStyles'; +import withStyles from "@mui/styles/withStyles"; +import { Theme } from "@mui/material/styles"; import Grid from "@mui/material/Grid"; -const TimerProgress = withStyles(() => ({ +const TimerProgress = withStyles((theme: Theme) => ({ + root: { + backgroundColor: theme.palette.background.paper, + }, bar: { transition: "none", - backgroundColor: "#adff2f", + backgroundColor: theme.palette.primary.main, }, }))(LinearProgress); @@ -36,7 +40,7 @@ export function GameTimer(props: IProps): React.ReactElement { // bar physically reaches the end return ( - + ); }