From 627b7e17e375656ee3fcffcdc72ee651ca8c61ca Mon Sep 17 00:00:00 2001 From: baegyeong Date: Wed, 4 Dec 2024 13:26:46 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=EC=A3=BC=EC=8B=9D=20?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B0=98?= =?UTF-8?q?=EC=9D=91=ED=98=95=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/stocks/StockRankingTable.tsx | 22 +++++++++++-------- packages/frontend/src/pages/stocks/Stocks.tsx | 4 ++-- .../stocks/components/StockIndexCard.tsx | 4 ++-- .../pages/stocks/components/StockInfoCard.tsx | 8 +++---- 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/packages/frontend/src/pages/stocks/StockRankingTable.tsx b/packages/frontend/src/pages/stocks/StockRankingTable.tsx index 87ca0c52..2d61aa1a 100644 --- a/packages/frontend/src/pages/stocks/StockRankingTable.tsx +++ b/packages/frontend/src/pages/stocks/StockRankingTable.tsx @@ -24,11 +24,11 @@ export const StockRankingTable = () => {
- - - - - + + + + + @@ -44,8 +44,8 @@ export const StockRankingTable = () => { onClick={handleSortType} /> - - + + @@ -76,8 +76,12 @@ export const StockRankingTable = () => { > {stock.changeRate}% - - + + )) ) : ( diff --git a/packages/frontend/src/pages/stocks/Stocks.tsx b/packages/frontend/src/pages/stocks/Stocks.tsx index d0902146..064b5889 100644 --- a/packages/frontend/src/pages/stocks/Stocks.tsx +++ b/packages/frontend/src/pages/stocks/Stocks.tsx @@ -23,7 +23,7 @@ export const Stocks = () => { 지금 시장, 이렇게 움직이고 있어요. {stockIndex ? ( -
+
{stockIndex?.map((info) => ( {

이 종목은 어떠신가요?

-
+
{topViews ? ( topViews.map((stock, index) => ( ) => { return ( -
+

{name}

{currentPrice} @@ -23,7 +23,7 @@ export const StockIndexCard = ({ {changeRate}%
-
+
시가 {open?.toLocaleString()}원 diff --git a/packages/frontend/src/pages/stocks/components/StockInfoCard.tsx b/packages/frontend/src/pages/stocks/components/StockInfoCard.tsx index d13043f9..1a6aaabb 100644 --- a/packages/frontend/src/pages/stocks/components/StockInfoCard.tsx +++ b/packages/frontend/src/pages/stocks/components/StockInfoCard.tsx @@ -16,14 +16,14 @@ export const StockInfoCard = ({ return (

{name}

-
-
+
+
등락률
-
+
현재가 {currentPrice?.toLocaleString()}원
거래대금거래량거래대금거래량
{stock.volume?.toLocaleString()}원{stock.marketCap?.toLocaleString()}주 + {stock.volume?.toLocaleString()}원 + + {stock.marketCap?.toLocaleString()}주 +