|
@@ -21,10 +21,9 @@ const TimerPresentation = ({ seconds, refresh }: ITimerPresentationProps) => {
|
|
|
'[data-second-hand]',
|
|
|
) as HTMLDivElement;
|
|
|
function setClock() {
|
|
|
- console.log(seconds, seconds / 60, seconds / 60 / 60);
|
|
|
const secondsRatio = seconds / 60;
|
|
|
- const minutesRatio = seconds / 60 / 60;
|
|
|
- const hoursRatio = seconds / 60 / 60 / 12;
|
|
|
+ const minutesRatio = secondsRatio / 60;
|
|
|
+ const hoursRatio = minutesRatio / 12;
|
|
|
setRotation(secondHand, secondsRatio);
|
|
|
setRotation(minuteHand, minutesRatio);
|
|
|
setRotation(hourHand, hoursRatio);
|