Skip to content

Commit

Permalink
do not show countdown timer enable disable button
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Remus committed Jan 10, 2025
1 parent 7cb1beb commit 27dfba4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/countdowntimer/CountdownTimer.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, { useRef } from 'react';
import { IconButton, Grid, Switch, styled } from '@mui/material';
import { IconButton, Grid, styled } from '@mui/material';
import { HighlightOff as HighlightOffIcon, Pause as PauseIcon, PlayArrow as PlayArrowIcon } from '@mui/icons-material';
import moment from 'moment';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
import { setCountdownTimerInitialTime, startCountdownTimer, stopCountdownTimer, disableCountdownTimer, enableCountdownTimer } from '../../store/actions/countdownTimerActions';
import { setCountdownTimerInitialTime, startCountdownTimer, stopCountdownTimer } from '../../store/actions/countdownTimerActions';
import {
countdownTimerStartLabel, countdownTimerStopLabel,
countdownTimerEnableLabel, countdownTimerDisableLabel }
from '../translated/translatedComponents';
countdownTimerStartLabel, countdownTimerStopLabel } from '../translated/translatedComponents';
import { isMobileSelector } from '../../store/selectors';
import { TimePicker } from '@mui/x-date-pickers/TimePicker';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
Expand Down Expand Up @@ -122,7 +120,7 @@ const CountdownTimer = () : JSX.Element => {
</Grid>

{/* enable/disable */}
<Grid item xs={1}>
{/* <Grid item xs={1}>
<Switch
aria-label={ !isStarted ?
countdownTimerDisableLabel() :
Expand All @@ -140,7 +138,7 @@ const CountdownTimer = () : JSX.Element => {
color='error'
size='small'
/>
</Grid>
</Grid> */}
</Grid>
</CountdownTimerDiv>
);
Expand Down

0 comments on commit 27dfba4

Please sign in to comment.