diff --git a/src/app/(main)/stock/[id]/_components/header.tsx b/src/app/(main)/stock/[id]/_components/header.tsx index 0d6287d..725c665 100644 --- a/src/app/(main)/stock/[id]/_components/header.tsx +++ b/src/app/(main)/stock/[id]/_components/header.tsx @@ -9,21 +9,25 @@ interface HeaderProps { export const Header = React.memo(({ stock, handleInfoClick }: HeaderProps) => { return ( -
-
-
-

{stock.ticker}

-

{stock.companyName}

+ <> +
+
+
+

{stock.ticker}

+

{stock.companyName}

+
-
-
-

{`$${stock.price}`}

- +
+

{`$${stock.price}`}

+ +
+ + {stock.industry && ( +
{stock.industry}
+ )}
- {stock.industry && ( -
{stock.industry}
- )} -
+
+ ); }); diff --git a/src/app/(main)/stock/[id]/page.tsx b/src/app/(main)/stock/[id]/page.tsx index b2448f1..ac784e7 100644 --- a/src/app/(main)/stock/[id]/page.tsx +++ b/src/app/(main)/stock/[id]/page.tsx @@ -44,7 +44,6 @@ export default function StockPage({ params }: { params: { id: string } }) {
-