@@ -56,10 +56,10 @@ export const GameTimer: FC<GameTimerProps> = ({
5656 const formattedTime = `${ minutes } :${ seconds . toString ( ) . padStart ( 2 , '0' ) } ` ;
5757
5858 const getTimerColor = ( ) => {
59- if ( isExpired || isStopped ) return " text-destructive" ;
60- if ( timeLeft <= 30 ) return " text-destructive" ;
61- if ( timeLeft <= 60 ) return " text-warning" ;
62- return " text-foreground" ;
59+ if ( isExpired || isStopped ) return ' text-destructive' ;
60+ if ( timeLeft <= 30 ) return ' text-destructive' ;
61+ if ( timeLeft <= 60 ) return ' text-warning' ;
62+ return ' text-foreground' ;
6363 } ;
6464
6565 const isFinished = isExpired || isStopped ;
@@ -72,9 +72,7 @@ export const GameTimer: FC<GameTimerProps> = ({
7272 < div className = "text-center" >
7373 < h2 className = "mb-2 font-bold text-2xl" > { dict . timer . title } </ h2 >
7474 < p className = "text-muted-foreground" >
75- { isFinished
76- ? dict . timer . timeUpDescription
77- : dict . timer . description }
75+ { isFinished ? dict . timer . timeUpDescription : dict . timer . description }
7876 </ p >
7977 </ div >
8078
@@ -83,10 +81,11 @@ export const GameTimer: FC<GameTimerProps> = ({
8381 'flex h-64 w-64 items-center justify-center rounded-full border-4 shadow-lg transition-colors' ,
8482 getTimerColor ( ) ,
8583 {
86- "animate-pulse border-destructive" : isExpired ,
87- "border-destructive" : ( timeLeft <= 30 && ! isFinished ) || isStopped ,
88- "border-warning" : timeLeft > 30 && timeLeft <= 60 && ! isFinished ,
89- "border-border" : timeLeft > 60 && ! isFinished ,
84+ 'animate-pulse border-destructive' : isExpired ,
85+ 'border-destructive' :
86+ ( timeLeft <= 30 && ! isFinished ) || isStopped ,
87+ 'border-warning' : timeLeft > 30 && timeLeft <= 60 && ! isFinished ,
88+ 'border-border' : timeLeft > 60 && ! isFinished ,
9089 } ,
9190 ) } >
9291 < div className = "text-center" >
0 commit comments