Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Nov 6, 2024
1 parent 34edfd6 commit 0768291
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modals/groupStudy/InviteOuterModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Flex } from "@chakra-ui/react";
import { useParams } from "next/navigation";
import { useQueryClient } from "react-query";
import { GROUP_STUDY } from "../../constants/keys/queryKeys";

import { GROUP_STUDY_ALL } from "../../constants/keys/queryKeys";
import { useCompleteToast } from "../../hooks/custom/CustomToast";
import { useGroupWaitingStatusMutation } from "../../hooks/groupStudy/mutations";
import { IModal } from "../../types/components/modalTypes";
Expand All @@ -17,10 +17,9 @@ function InviteOuterModal({ setIsModal }: InviteOuterModalProps) {
const { mutate: mutate2, isLoading } = useGroupWaitingStatusMutation(+id, {
onSuccess() {
completeToast("free", "가입되었습니다.");
queryClient.invalidateQueries([GROUP_STUDY_ALL]);
queryClient.invalidateQueries([GROUP_STUDY]);
},
});


const footerOptions: IFooterOptions = {
main: {
Expand Down

0 comments on commit 0768291

Please sign in to comment.