diff --git a/src/components/timer/Clock.jsx b/src/components/timer/Clock.jsx index f5a4e0a..e65d005 100644 --- a/src/components/timer/Clock.jsx +++ b/src/components/timer/Clock.jsx @@ -1,8 +1,12 @@ import { Text } from '@chakra-ui/react' -export default function wClock({ remainingtimeToDisplay = '00:00:00' }) { +export default function wClock({ + remainingtimeToDisplay = '00:00:00', + ...rest +}) { return ( ( ) -export default function CountDown({ - parentRunning = false, - remainingtimeToDisplay, -}) { +export default function CountDown({ parentRunning = false, ...clockProps }) { const { t } = useTranslation() const { toggleRunning, sendReset } = useTimerContext() const [isPickerVisible, setPickerVisible] = useState(false) @@ -52,7 +49,6 @@ export default function CountDown({ <> - {isPickerVisible ? ( - - ) : ( - - )} + {isPickerVisible ? : }