diff --git a/packages/frontend/src/pages/stocks/StockRankingTable.tsx b/packages/frontend/src/pages/stocks/StockRankingTable.tsx index 117ea95c..b8464a70 100644 --- a/packages/frontend/src/pages/stocks/StockRankingTable.tsx +++ b/packages/frontend/src/pages/stocks/StockRankingTable.tsx @@ -1,17 +1,17 @@ import { useState } from 'react'; import { Link } from 'react-router-dom'; import { usePostStockView } from '@/apis/queries/stock-detail'; -import { useGetStocksByPrice } from '@/apis/queries/stocks'; +// import { useGetStocksByPrice } from '@/apis/queries/stocks'; import DownArrow from '@/assets/down-arrow.svg?react'; import stockData from '@/mocks/stock.json'; import { cn } from '@/utils/cn'; -const LIMIT = 20; +// const LIMIT = 20; export const StockRankingTable = () => { const [isGaining, setIsGaining] = useState(true); - const { data } = useGetStocksByPrice({ limit: LIMIT, isGaining }); + // const { data } = useGetStocksByPrice({ limit: LIMIT, isGaining }); const { mutate } = usePostStockView(); return ( diff --git a/packages/frontend/src/pages/stocks/Stocks.tsx b/packages/frontend/src/pages/stocks/Stocks.tsx index b4d6dd9a..8bdcc01c 100644 --- a/packages/frontend/src/pages/stocks/Stocks.tsx +++ b/packages/frontend/src/pages/stocks/Stocks.tsx @@ -1,11 +1,11 @@ import { StockIndexCard } from './components/StockIndexCard'; import { StockInfoCard } from './components/StockInfoCard'; import { StockRankingTable } from './StockRankingTable'; -import { useGetTopViews } from '@/apis/queries/stocks'; +// import { useGetTopViews } from '@/apis/queries/stocks'; import marketData from '@/mocks/market.json'; import stock from '@/mocks/stock.json'; -const LIMIT = 5; +// const LIMIT = 5; export const Stocks = () => { const kospi = marketData.data.filter((value) => value.name === '코스피')[0]; @@ -14,7 +14,7 @@ export const Stocks = () => { (value) => value.name === '달러환율', )[0]; - const { data: topViews } = useGetTopViews({ limit: LIMIT }); + // const { data: topViews } = useGetTopViews({ limit: LIMIT }); return (