Skip to content

Commit 48061ca

Browse files
authored
Merge pull request #117 from DDD-Community/feat/#58
[feat/#58] 로딩 중 문구가 표시되지 않도록 수정
2 parents 384518c + 00394b4 commit 48061ca

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/components/Crew/CrewList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const CrewList = (): ReactElement => {
210210
</div>
211211

212212
{/* list */}
213-
{isLoading ? "로딩 중입니다..." : isError ? "데이터를 불러오는데 실패했습니다." : createGroupList(data?.data)}
213+
{isError ? "데이터를 불러오는데 실패했습니다." : createGroupList(data?.data)}
214214
</div>
215215
)
216216
}

src/components/Modal/JoinCrewModal.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const JoinCrewModal = (props: ModalProps): React.ReactElement => {
1414
const [joinCode, setJoinCode] = useState<string>("")
1515
const [isCodeError, setIsCodeError] = useState<boolean>(false)
1616

17-
const { data, isLoading, isError } = useGetGroup(id)
17+
const { data, isError } = useGetGroup(id)
1818
const joinGroupMutation = useJoinGroup()
1919

2020
const onChangeJoinCode = (e: React.ChangeEvent<HTMLInputElement>): void => {
@@ -75,9 +75,7 @@ const JoinCrewModal = (props: ModalProps): React.ReactElement => {
7575

7676
return (
7777
<ModalContainer onClose={onClose}>
78-
{isLoading ? (
79-
"로딩 중입니다."
80-
) : isError ? (
78+
{isError ? (
8179
"데이터를 불러오지 못했습니다."
8280
) : (
8381
<div className="flex w-full flex-col items-center">

src/pages/AnalysisDashboard.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const AnalysisDashboard = () => {
9494
</div>
9595
</div>
9696

97-
{isLoading && <div>로딩 중입니다...</div>}
9897
{isError && <div>데이터를 불러오는 것에 실패했습니다</div>}
9998

10099
{!isLoading && !isError && todayAnalysis && (

0 commit comments

Comments
 (0)