From c552a22af85bc8b454b67fd453d9369bcf607936 Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Wed, 18 Jan 2023 12:39:55 -0500 Subject: [PATCH] feat(#2560): show market code and name in the trading header (#2659) --- .../trading/client-pages/liquidity/liquidity.tsx | 2 +- .../client-pages/market/trade-market-header.tsx | 1 + apps/trading/components/header/header.tsx | 4 ++-- .../components/select-market/select-market.tsx | 16 ++++++++++++---- .../vega-wallet-connect-button.tsx | 6 +++--- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/apps/trading/client-pages/liquidity/liquidity.tsx b/apps/trading/client-pages/liquidity/liquidity.tsx index 9cbbe5017..84db6e3dc 100644 --- a/apps/trading/client-pages/liquidity/liquidity.tsx +++ b/apps/trading/client-pages/liquidity/liquidity.tsx @@ -226,7 +226,7 @@ export const LiquidityViewContainer = ({ market?.tradableInstrument.instrument.name && marketId && ( - + {`${market?.tradableInstrument.instrument.name} ${t( 'liquidity provision' )}`} diff --git a/apps/trading/client-pages/market/trade-market-header.tsx b/apps/trading/client-pages/market/trade-market-header.tsx index 629241077..3a9c10c5b 100644 --- a/apps/trading/client-pages/market/trade-market-header.tsx +++ b/apps/trading/client-pages/market/trade-market-header.tsx @@ -44,6 +44,7 @@ export const TradeMarketHeader = ({
{ return ( -
-
+
+
{title}
void; onCellClick: OnCellClickHandler; }) => { - const triggerClasses = - 'sm:text-lg md:text-xl lg:text-2xl flex items-center gap-2 whitespace-nowrap hover:text-neutral-500 dark:hover:text-neutral-300 mt-1'; const { pubKey } = useVegaWallet(); const [open, setOpen] = useState(false); const inViewRoot = useRef(null); @@ -150,8 +150,16 @@ export const SelectMarketPopover = ({ open={open} onChange={setOpen} trigger={ - - {marketName} + + + + {marketCode} + + + {marketName} + + + } diff --git a/apps/trading/components/vega-wallet-connect-button/vega-wallet-connect-button.tsx b/apps/trading/components/vega-wallet-connect-button/vega-wallet-connect-button.tsx index d27ad65ae..7833ca1b3 100644 --- a/apps/trading/components/vega-wallet-connect-button/vega-wallet-connect-button.tsx +++ b/apps/trading/components/vega-wallet-connect-button/vega-wallet-connect-button.tsx @@ -70,7 +70,7 @@ const MobileWalletButton = ({ [selectPubKey] ); return ( -
+
{ if (isConnected && pubKeys) { return ( <> -
+
{ data-testid="connect-vega-wallet" onClick={openVegaWalletDialog} size="sm" - className="hidden md:block" + className="hidden lg:block" > {t('Connect Vega wallet')}