diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 7a772a87..8b841998 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -54,5 +54,5 @@ export const fetchMyProfile = async () => { }; export const fetchMeetingListOfUserAttend = async () => { - return api.get>('/user/v2/meeting/all'); + return api.get('/user/v2/meeting/all'); }; diff --git a/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx b/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx index 2dcb3f9e..b9158a78 100644 --- a/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx +++ b/src/components/feed/Modal/FeedCreateWithSelectMeetingModal.tsx @@ -83,7 +83,7 @@ function FeedCreateWithSelectMeetingModal({ isModalOpened, handleModalClose }: C {!isFetchAttendMeetingLoading && ( { - const { isActive } = props; +const FloatingButtonModal = (props: { isActive: boolean; handleOptionClose: () => void }) => { + const { isActive, handleOptionClose } = props; const router = useRouter(); const overlay = useOverlay(); const { data: me } = useQueryMyProfile(); @@ -19,11 +19,23 @@ const FloatingButtonModal = (props: { isActive: boolean }) => { const { mutate: fetchUserAttendMeetingListMutate } = useMutation(fetchMeetingListOfUserAttend, { onSuccess: data => { queryClient.setQueryData(['fetchMeetingList', 'all'], data); - if (data.data.data.length === 0) { - overlay.open(({ isOpen, close }) => ); + if (data.data.length === 0) { + overlay.open(({ isOpen, close }) => ( + { + close(), handleOptionClose(); + }} + /> + )); } else { overlay.open(({ isOpen, close }) => ( - + { + close(), handleOptionClose(); + }} + /> )); } }, diff --git a/src/components/page/postList/FloatingButton/index.tsx b/src/components/page/postList/FloatingButton/index.tsx index 3adc6c09..775fa199 100644 --- a/src/components/page/postList/FloatingButton/index.tsx +++ b/src/components/page/postList/FloatingButton/index.tsx @@ -30,7 +30,7 @@ function FloatingButton() { - + );