소스 검색

small fix

unknown 3 년 전
부모
커밋
5862d03afd
3개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      .eslintcache
  2. 1 1
      src/App.tsx
  3. 2 3
      src/components/TimerContainer/TimerPresentation/TimerPresentation.tsx

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
.eslintcache


+ 1 - 1
src/App.tsx

@@ -17,7 +17,7 @@ function App() {
       <PasswordConfirm min={5} />
       <TimerContainer
         amountMs={4528000}
-        refresh={10}
+        refresh={1000}
         render={TimerPresentation}
       />
       <ToastContainer

+ 2 - 3
src/components/TimerContainer/TimerPresentation/TimerPresentation.tsx

@@ -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);