From ab7bddf82da72caf8e5e9fff58c4c32922279b21 Mon Sep 17 00:00:00 2001 From: hyobin Date: Wed, 30 Aug 2023 17:13:37 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20[GGFE-195]=20=EC=BD=94=EC=9D=B8=20?= =?UTF-8?q?=EB=82=B4=EC=97=AD=20api=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/modal/store/UserCoinHistoryModal.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/modal/store/UserCoinHistoryModal.tsx b/components/modal/store/UserCoinHistoryModal.tsx index 6f8e16b70..9ee2dc345 100644 --- a/components/modal/store/UserCoinHistoryModal.tsx +++ b/components/modal/store/UserCoinHistoryModal.tsx @@ -1,8 +1,7 @@ -import Image from 'next/image'; import { useEffect, useState } from 'react'; import { useSetRecoilState } from 'recoil'; import { ICoin, ICoinHistoryTable } from 'types/userTypes'; -import { mockInstance } from 'utils/mockAxios'; +import { instance } from 'utils/axios'; import { errorState } from 'utils/recoil/error'; import { modalState } from 'utils/recoil/modal'; import { @@ -34,11 +33,11 @@ export default function UserCoinHistoryModal({ coin }: ICoin) { getCoinHistoryList(); }, [currentPage]); - // TODO: instance로 수정 + // 현재는 출석만 되는 상태 const getCoinHistoryList = async () => { try { - const res = await mockInstance.get( - `/users/coin/?page=${currentPage}&size=5` + const res = await instance.get( + `pingpong/users/coinhistory/?page=${currentPage}&size=5` ); setCoinHistoryList({ useCoinList: res.data.useCoinList,