From 2a090eb64985efa0e73a6d11534c7549809729ee Mon Sep 17 00:00:00 2001 From: seungju Date: Thu, 18 Apr 2024 22:09:58 +0900 Subject: [PATCH] fix: gather writing error and refactor gather type --- components/atoms/TimeSelectorUnit.tsx | 2 +- .../organisms/location/LocationSearch.tsx | 2 +- constants/styles.ts | 2 +- constants/util/convert.ts | 2 +- hooks/gather/mutations.ts | 2 +- hooks/groupStudy/queries.ts | 2 +- hooks/user/queries.ts | 2 +- modals/gather/GatherKakaoShareModal.tsx | 8 ++- modals/gather/GatherWritingConfirmModal.tsx | 2 +- pageTemplates/gather/detail/GatherContent.tsx | 2 +- pageTemplates/gather/detail/GatherTitle.tsx | 2 +- .../gather/writing/GatherWritingDateDate.tsx | 2 +- .../writing/GatherWritingDateSubject.tsx | 25 +++++-- .../condition/GatherWritingConditionCnt.tsx | 2 +- pageTemplates/group/detail/GroupComment.tsx | 2 +- pageTemplates/group/detail/GroupTitle.tsx | 2 +- pages/gather/[id]/index.tsx | 3 +- pages/gather/writing/category.tsx | 4 +- pages/gather/writing/condition.tsx | 33 +++++---- pages/gather/writing/date.tsx | 2 +- pages/gather/writing/location.tsx | 2 +- pages/group/writing/condition.tsx | 2 +- pages/review/index.tsx | 2 +- recoils/sharedDataAtoms.ts | 2 +- types/models/gatherTypes/gather.ts | 72 ------------------- types/models/gatherTypes/gatherTypes.ts | 6 +- types/models/groupTypes/group.ts | 2 +- 27 files changed, 71 insertions(+), 120 deletions(-) delete mode 100644 types/models/gatherTypes/gather.ts diff --git a/components/atoms/TimeSelectorUnit.tsx b/components/atoms/TimeSelectorUnit.tsx index e896175cc..866d2c20e 100644 --- a/components/atoms/TimeSelectorUnit.tsx +++ b/components/atoms/TimeSelectorUnit.tsx @@ -20,13 +20,13 @@ function TimeSelectorUnit({ time, setTime, timeArr, disabled }: ITimeSelectorUni const minutes = Number(value.slice(3)); setTime({ hours, minutes }); }; + return (