diff --git a/src/components/CompanyProfileCard.tsx b/src/components/CompanyProfileCard.tsx index f72658d..77c25b1 100644 --- a/src/components/CompanyProfileCard.tsx +++ b/src/components/CompanyProfileCard.tsx @@ -1,4 +1,5 @@ import { useState, useEffect } from 'react'; +import PeersWidget from './PeersWidget'; interface CompanyProfileProps { ticker: string; @@ -51,29 +52,30 @@ const CompanyProfileCard = ({ ticker }: CompanyProfileProps) => { } return ( -
-

About this company

-
+
+

About this company

+
{`${profile.name}
-

{profile.name}

-

{profile.ticker} | {profile.finnhubIndustry}

+

{profile.name}

+

{profile.ticker} | {profile.finnhubIndustry}

-
+
-

Country: {profile.country}

-

Currency: {profile.currency}

-

Exchange: {profile.exchange}

-

Market Cap: ${profile.marketCapitalization.toFixed(2)}B

+

Country: {profile.country}

+

Currency: {profile.currency}

+

Exchange: {profile.exchange}

+

Market Cap: ${profile.marketCapitalization.toFixed(2)}B

-

IPO Date: {new Date(profile.ipo).toLocaleDateString()}

-

Outstanding Shares: {profile.shareOutstanding.toFixed(2)}M

-

Phone: {profile.phone}

-

Website: {profile.weburl}

+

IPO Date: {new Date(profile.ipo).toLocaleDateString()}

+

Outstanding Shares: {profile.shareOutstanding.toFixed(2)}M

+

Phone: {profile.phone}

+

Website: {profile.weburl}

+
); }; diff --git a/src/components/NavigationBar.tsx b/src/components/NavigationBar.tsx index da002cb..b71bdf4 100644 --- a/src/components/NavigationBar.tsx +++ b/src/components/NavigationBar.tsx @@ -24,8 +24,8 @@ const NavigationBar = ({ onSelectSymbol }: NavigationBarProps) => { } return ( -