From 22deb4986f484ea7b548b1dd15e198e0c4aa10fe Mon Sep 17 00:00:00 2001 From: Dobbymin Date: Tue, 15 Oct 2024 23:19:26 +0900 Subject: [PATCH] =?UTF-8?q?Fix(challenge-completes):=20=EC=99=84=EB=A3=8C?= =?UTF-8?q?=ED=95=9C=20=EC=B1=8C=EB=A6=B0=EC=A7=80=20api=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/my-challenge-record/index.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pages/my-challenge-record/index.tsx b/src/pages/my-challenge-record/index.tsx index 9051c5d..91243e1 100644 --- a/src/pages/my-challenge-record/index.tsx +++ b/src/pages/my-challenge-record/index.tsx @@ -1,8 +1,8 @@ import { useCallback, useEffect, useState } from 'react'; import ListItem from './components/list-item'; -import { useGetReview } from '@/apis/my-challenge-record/getReview.api'; -import { ChallengeData } from '@/apis/my-challenge-record/getReview.response'; +import { useGetChallengeCompletes } from '@/apis/challenge-completes/challenge-completes.api'; +import { ChallengeData } from '@/apis/challenge-completes/challenge-completes.response'; import EmptyState from '@/components/common/empty-state'; import TopBar, { HEADER_HEIGHT } from '@/components/features/layout/top-bar'; import { Box, Spinner } from '@chakra-ui/react'; @@ -11,7 +11,7 @@ import styled from '@emotion/styled'; const MyChallengeRecord = () => { const [page, setPage] = useState(0); const [allChallenges, setAllChallenges] = useState([]); - const { data, isLoading } = useGetReview(page, 20); + const { data, isLoading } = useGetChallengeCompletes(page, 20); const loadMoreChallenges = useCallback(() => { if (data?.data.hasNext && !isLoading) { @@ -54,11 +54,9 @@ const MyChallengeRecord = () => { {allChallenges.length > 0 ? ( allChallenges.map((challenge, index) => ( )) ) : (