From 539d2f7c07ba88f1252b244b7a02e2d1be398c17 Mon Sep 17 00:00:00 2001 From: iOdiO89 <117376841+iOdiO89@users.noreply.github.com> Date: Mon, 2 Sep 2024 02:35:01 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20Import=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "src/\bcustom.d.ts" | 4 ---- src/components/layout.tsx | 2 -- src/hooks/apis/paymentHistory.ts | 2 +- src/pages/history.tsx | 1 - src/pages/waiting.tsx | 2 +- 5 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 "src/\bcustom.d.ts" diff --git "a/src/\bcustom.d.ts" "b/src/\bcustom.d.ts" deleted file mode 100644 index 37e639e..0000000 --- "a/src/\bcustom.d.ts" +++ /dev/null @@ -1,4 +0,0 @@ -declare module '*.mp3' { - const src: string - export default src -} diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 76a5f92..2b7fbdb 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -4,8 +4,6 @@ import NavBar from './navBar' import { useAtom } from 'jotai' import { currentTabAtom, modalDetailAtom, modalShowAtom, processCountAtom, waitingCountAtom } from 'utils/atom' import { ROUTE } from 'constants/path' -import { useGetPaymentHistory } from 'hooks/apis/paymentHistory' -import { useEffect } from 'react' import Modal from './modal' export default function Layout() { diff --git a/src/hooks/apis/paymentHistory.ts b/src/hooks/apis/paymentHistory.ts index a443162..0616127 100644 --- a/src/hooks/apis/paymentHistory.ts +++ b/src/hooks/apis/paymentHistory.ts @@ -1,4 +1,4 @@ -import { QueryClient, useMutation, useQuery, useQueryClient } from '@tanstack/react-query' +import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' import { getPaymentHistory, patchPaymentHistory } from 'apis/paymentHistory' import { useAtom } from 'jotai' import { useEffect } from 'react' diff --git a/src/pages/history.tsx b/src/pages/history.tsx index b0f1e0d..0aa1bf2 100644 --- a/src/pages/history.tsx +++ b/src/pages/history.tsx @@ -4,7 +4,6 @@ import { useState } from 'react' import { Container, CardContainer, TabTitle, Loading } from 'styles/shared' import styled from 'styled-components' import dayjs from 'dayjs' -import { useAtom } from 'jotai' import { useGetPaymentHistory } from 'hooks/apis/paymentHistory' import { OrbitProgress } from 'react-loading-indicators' import { parseOrder } from 'utils/order' diff --git a/src/pages/waiting.tsx b/src/pages/waiting.tsx index 0936dcf..7914744 100644 --- a/src/pages/waiting.tsx +++ b/src/pages/waiting.tsx @@ -2,7 +2,7 @@ import OrderCard from 'components/orderCard' import { useAtom } from 'jotai' import { Container, CardContainer, TabTitle, Loading } from 'styles/shared' import { waitingCountAtom } from 'utils/atom' -import { useGetPaymentHistory, useGetWaitingOrder } from 'hooks/apis/paymentHistory' +import { useGetWaitingOrder } from 'hooks/apis/paymentHistory' import { parseOrder, sortOrder } from 'utils/order' import { useLocation } from 'react-router-dom' import { useEffect } from 'react'