diff --git a/common/components/ChainAlertBar.tsx b/common/components/ChainAlertBar.tsx index 2ba7045..ce7b647 100644 --- a/common/components/ChainAlertBar.tsx +++ b/common/components/ChainAlertBar.tsx @@ -3,21 +3,35 @@ import styled from 'styled-components'; import { Front, Sale } from '../../blocks'; type AlertBarProps = { - text: string; - url?: string; - textPrefix?: string; + bannerText: string; + bannerURL: string; + bannerTextPrefix?: string; + prefixURL; }; -const ChainAlertBar = ({ text, url, textPrefix }: AlertBarProps) => { +const ChainAlertBar = ({ + bannerText, + bannerURL, + bannerTextPrefix, + prefixURL, +}: AlertBarProps) => { return ( { - if (url) window.open(url, '_blank'); + if (bannerURL) window.open(bannerURL, '_blank'); }} > - {textPrefix} {text} + { + e.stopPropagation(); + window.open(prefixURL, '_blank'); + }} + > + {bannerTextPrefix} + {' '} + {bannerText} diff --git a/components/Navbar/index.tsx b/components/Navbar/index.tsx index 300d148..282dd6b 100644 --- a/components/Navbar/index.tsx +++ b/components/Navbar/index.tsx @@ -77,13 +77,13 @@ export default function Navbar() { gap={{ initial: 'spacing-sm', ml: 'spacing-none' }} margin={{ ml: 'spacing-xxs' }} > - {asPath !== '/dashboard' && ( + {/* {asPath !== '/dashboard' && ( App Ecosystem - )} + )} */} { gap="spacing-lg" >