Skip to content

Commit

Permalink
refactor: 코드 순서 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
wokbjso committed Sep 13, 2024
1 parent caeb55e commit 579b32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/record/components/organisms/time-bottom-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export function TimeBottomSheet({ startTime, endTime }: TimeBottomSheetProps) {
minute: MinuteType;
}>(defaultPickerValue);

usePreventBodyScroll({ isOpen: timeBottmSheetState.isOpen });

useEffect(() => {
if (Boolean(startTime) && timeBottmSheetState.variant === 'start')
setPickerValue(convertToPickerValue(startTime));
Expand All @@ -43,8 +45,6 @@ export function TimeBottomSheet({ startTime, endTime }: TimeBottomSheetProps) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [timeBottmSheetState.variant]);

usePreventBodyScroll({ isOpen: timeBottmSheetState.isOpen });

const autoSetStartTime = () => {
// 시작 시간이 아직 설정 안됨 or 시작 시간이 종료 시간보다 이후일 경우
if (
Expand Down

0 comments on commit 579b32a

Please sign in to comment.