From d5d0eafa79c1c0bd927e63cc4a08a85cd4a7c07f Mon Sep 17 00:00:00 2001 From: happppi <102276917+hhbb0081@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:02:54 +0900 Subject: [PATCH 1/7] =?UTF-8?q?Feat:=20=EB=AA=A8=EC=9E=84=20=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EC=9A=94=EC=B2=AD=20=EC=88=98=EB=9D=BD=20&=20?= =?UTF-8?q?=EA=B1=B0=EC=A0=88=20api=20=EC=97=B0=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/info/manage/join/ManageJoin.tsx | 66 +++++++++++-------- .../manage/join/components/ManageJoinBox.tsx | 3 +- .../join/components/ManageJoinHeader.tsx | 14 +++- .../manage/join/components/ManageJoinList.tsx | 6 +- src/hook/info/useClubJoinAcceptMutation.ts | 14 ++-- src/hook/info/useClubJoinDenyMutation.ts | 14 ++-- src/types/info/types.ts | 2 +- 7 files changed, 70 insertions(+), 49 deletions(-) diff --git a/src/features/info/manage/join/ManageJoin.tsx b/src/features/info/manage/join/ManageJoin.tsx index 58e96d7..1c9bd98 100644 --- a/src/features/info/manage/join/ManageJoin.tsx +++ b/src/features/info/manage/join/ManageJoin.tsx @@ -6,37 +6,45 @@ import ManageJoinHeader from "./components/ManageJoinHeader"; import ManageJoinList from "./components/ManageJoinList"; import ManageJoinWrapper from "./components/ManageJoinWrapper"; +import { ClubJoin } from "@/types/info"; import { useState } from "react"; import "./components/ManageJoin.css"; -export const ManageJoin = () => { - const { data: joinList } = useClubJoinQuery(); - console.log(joinList); - const [selectJoins, setSelectJoins] = useState([]); +const ManageJoinContent = ({ + joinList +}: { + joinList: ClubJoin[] +}) => { + const [selectJoins, setSelectJoins] = useState([]); + + return ( + <> + + + + ); +}; + +export const ManageJoin = () => { + const { data: joinList } = useClubJoinQuery(); + console.log(joinList); - return( - <> - - - { - joinList && - joinList.data && - <> - - - - } - -