From 6044b86ff4636ee76c2c920106a81fcd006a0bc0 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Fri, 13 Oct 2023 11:30:04 -0700 Subject: [PATCH] chore(trading): add background to sidebar and minor tweaks (#5037) --- apps/trading/client-pages/market/market-header-stats.tsx | 4 ++-- apps/trading/components/header/header.tsx | 6 +++--- apps/trading/components/layouts/layout-with-sidebar.tsx | 9 ++++++--- apps/trading/components/market-header/market-header.tsx | 5 ++--- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/trading/client-pages/market/market-header-stats.tsx b/apps/trading/client-pages/market/market-header-stats.tsx index 152ec003d..ed9c29ce1 100644 --- a/apps/trading/client-pages/market/market-header-stats.tsx +++ b/apps/trading/client-pages/market/market-header-stats.tsx @@ -43,7 +43,7 @@ export const MarketHeaderStats = ({ market }: MarketHeaderStatsProps) => { const asset = getAsset(market); return ( -
+ <> { )} -
+ ); }; diff --git a/apps/trading/components/header/header.tsx b/apps/trading/components/header/header.tsx index 6ff4d50ee..98739f0ea 100644 --- a/apps/trading/components/header/header.tsx +++ b/apps/trading/components/header/header.tsx @@ -17,11 +17,11 @@ export const Header = ({ title, children }: TradeMarketHeaderProps) => { ); return (
-
+
{title}
-
+
{children}
@@ -70,7 +70,7 @@ export const HeaderTitle = ({ children }: { children: ReactNode }) => { return (

{children}

diff --git a/apps/trading/components/layouts/layout-with-sidebar.tsx b/apps/trading/components/layouts/layout-with-sidebar.tsx index c7f982540..f6b848637 100644 --- a/apps/trading/components/layouts/layout-with-sidebar.tsx +++ b/apps/trading/components/layouts/layout-with-sidebar.tsx @@ -40,9 +40,12 @@ export const LayoutWithSidebar = () => { diff --git a/apps/trading/components/market-header/market-header.tsx b/apps/trading/components/market-header/market-header.tsx index 5f1a005e5..31943238c 100644 --- a/apps/trading/components/market-header/market-header.tsx +++ b/apps/trading/components/market-header/market-header.tsx @@ -28,12 +28,11 @@ export const MarketHeader = () => { {data.tradableInstrument.instrument.code} - - {' '} + {data.tradableInstrument.instrument.product.__typename && ProductTypeShortName[ data.tradableInstrument.instrument.product.__typename - ]}{' '} + ]}