Skip to content

Commit

Permalink
➕ add: 주식종목 한글명 데이터 연동
Browse files Browse the repository at this point in the history
  • Loading branch information
dongree committed Nov 14, 2024
1 parent 9325646 commit 88b80e5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions FE/src/components/StocksDetail/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@ export default function Header({ code }: StocksDeatailHeaderProps) {
if (isLoading) return;
if (!data) return;

const { stck_prpr, prdy_vrss, prdy_vrss_sign, prdy_ctrt, hts_avls, per } =
data;
const {
hts_kor_isnm,
stck_prpr,
prdy_vrss,
prdy_vrss_sign,
prdy_ctrt,
hts_avls,
per,
} = data;

const stockInfo: { label: string; value: string }[] = [
{ label: '시총', value: `${Number(hts_avls).toLocaleString()}억원` },
Expand All @@ -32,7 +39,7 @@ export default function Header({ code }: StocksDeatailHeaderProps) {
<div className='flex items-center justify-between w-full h-16 px-2'>
<div className='flex flex-col font-semibold'>
<div className='flex gap-2 text-sm'>
<h2>{'empty'}</h2>
<h2>{hts_kor_isnm}</h2>
<p className='text-juga-grayscale-200'>{code}</p>
</div>
<div className='flex items-center gap-2'>
Expand Down

0 comments on commit 88b80e5

Please sign in to comment.