Skip to content

Commit

Permalink
๐Ÿ› fix: ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๋ณ€์ˆ˜ ์ฃผ์„ ์ฒ˜๋ฆฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong committed Nov 22, 2024
1 parent fc9589e commit 7c40223
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/pages/stocks/StockRankingTable.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/pages/stocks/Stocks.tsx
Original file line number Diff line number Diff line change
@@ -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];
Expand All @@ -14,7 +14,7 @@ export const Stocks = () => {
(value) => value.name === '๋‹ฌ๋Ÿฌํ™˜์œจ',
)[0];

const { data: topViews } = useGetTopViews({ limit: LIMIT });
// const { data: topViews } = useGetTopViews({ limit: LIMIT });

return (
<main className="flex flex-col gap-16">
Expand Down

0 comments on commit 7c40223

Please sign in to comment.