-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Stopwatch 페이지 구현 #90
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다
src/app/stopwatch/page.tsx
Outdated
|
||
const { searchParams } = useSearchParamsTypedValue<ObjectKeys<typeof MISSION_CATEGORIES>>('category'); | ||
const { step, prevStep, stepLabel, onNextStep } = useTimerStatus(); | ||
const { seconds, minutes, stepper } = useTimer(step); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useStopwatch, useStopwatchStatus 로 네이밍이 변경되면 좋을 것 같아요
const TEST_MS = 10; | ||
|
||
// 좀 더 의미론적.... useStopwatch | ||
export default function useStopwatch(status: StepType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(제안) 나중에 이 hook 을 service파일에 넣어서 테스트를 작성해보는건 어떨까요? status 라는 타입에 따라서 동작하는 것 같아서 서비스로직 같다는 생각이 들었어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다~
🤔 해결하려는 문제가 무엇인가요?
closed #42 #16
🎉 변경 사항
Dialog
컴포넌트가 뜨고,끝내기
버튼을 클릭하면/complete
페이지로 이동됩니다.🙏 여기는 꼭 봐주세요!