From 00394b4c562a3c033e6911c323b8ceaa95d9f222 Mon Sep 17 00:00:00 2001 From: G-hoon Date: Tue, 8 Oct 2024 23:31:36 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#58]=20=EB=A1=9C=EB=94=A9=20=EC=A4=91=20?= =?UTF-8?q?=EB=AC=B8=EA=B5=AC=EA=B0=80=20=ED=91=9C=EC=8B=9C=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Crew/CrewList.tsx | 2 +- src/components/Modal/JoinCrewModal.tsx | 6 ++---- src/pages/AnalysisDashboard.tsx | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Crew/CrewList.tsx b/src/components/Crew/CrewList.tsx index ade6972..00e0dc5 100644 --- a/src/components/Crew/CrewList.tsx +++ b/src/components/Crew/CrewList.tsx @@ -210,7 +210,7 @@ const CrewList = (): ReactElement => { {/* list */} - {isLoading ? "로딩 중입니다..." : isError ? "데이터를 불러오는데 실패했습니다." : createGroupList(data?.data)} + {isError ? "데이터를 불러오는데 실패했습니다." : createGroupList(data?.data)} ) } diff --git a/src/components/Modal/JoinCrewModal.tsx b/src/components/Modal/JoinCrewModal.tsx index 325b2cd..305e116 100644 --- a/src/components/Modal/JoinCrewModal.tsx +++ b/src/components/Modal/JoinCrewModal.tsx @@ -14,7 +14,7 @@ const JoinCrewModal = (props: ModalProps): React.ReactElement => { const [joinCode, setJoinCode] = useState("") const [isCodeError, setIsCodeError] = useState(false) - const { data, isLoading, isError } = useGetGroup(id) + const { data, isError } = useGetGroup(id) const joinGroupMutation = useJoinGroup() const onChangeJoinCode = (e: React.ChangeEvent): void => { @@ -75,9 +75,7 @@ const JoinCrewModal = (props: ModalProps): React.ReactElement => { return ( - {isLoading ? ( - "로딩 중입니다." - ) : isError ? ( + {isError ? ( "데이터를 불러오지 못했습니다." ) : (
diff --git a/src/pages/AnalysisDashboard.tsx b/src/pages/AnalysisDashboard.tsx index 0dbbf41..0018dd2 100644 --- a/src/pages/AnalysisDashboard.tsx +++ b/src/pages/AnalysisDashboard.tsx @@ -94,7 +94,6 @@ const AnalysisDashboard = () => {
- {isLoading &&
로딩 중입니다...
} {isError &&
데이터를 불러오는 것에 실패했습니다
} {!isLoading && !isError && todayAnalysis && (