From ad8ac7b45ce5a1740cd61df8964b78cb5451e493 Mon Sep 17 00:00:00 2001 From: saml33 Date: Sun, 31 Mar 2024 21:20:50 +1100 Subject: [PATCH] update listing banner for wormhole --- components/NewListingBanner.tsx | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/components/NewListingBanner.tsx b/components/NewListingBanner.tsx index f88e3ff8..9956d167 100644 --- a/components/NewListingBanner.tsx +++ b/components/NewListingBanner.tsx @@ -40,13 +40,18 @@ const NewListingBanner = () => { const showForNewListing = latestListing && latestListing.uiPrice + // change this to false when token launches + const isPreLaunch = latestListing?.name === 'W' + return (!hasSeenNewListingBanner && showForNewListing) || (showForNewListing && hasSeenNewListingBanner !== latestListing?.name) ? (
- {t('new-token-live', { tokenName: latestListing.name })} + {!isPreLaunch + ? t('new-token-live', { tokenName: latestListing.name }) + : `Pre-launch W is live.`}
{newMarketName ? ( @@ -56,18 +61,22 @@ const NewListingBanner = () => { href={`/trade?name=${newMarketName}`} shallow > - {`${t('trade')} ${latestListing.name}`} + {!isPreLaunch + ? `${t('trade')} ${latestListing.name}` + : 'Place Your Bids'} {' '} - |{' '} + {!isPreLaunch ? | : null}{' '} ) : null} - - {`${t('swap')} ${latestListing.name}`} - + {!isPreLaunch ? ( + + {`${t('swap')} ${latestListing.name}`} + + ) : null}