chore(governance): update announcement banner (#2894)

This commit is contained in:
Sam Keen 2023-02-13 16:48:16 +00:00 committed by GitHub
parent 3edbc71787
commit 462a5bc84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View File

@ -60,9 +60,9 @@ function App() {
<NetworkLoader cache={cacheConfig}> <NetworkLoader cache={cacheConfig}>
<AnnouncementBanner> <AnnouncementBanner>
<div className="font-alpha calt uppercase text-center text-lg text-white"> <div className="font-alpha calt uppercase text-center text-lg text-white">
<span className="pr-4">The Mainnet sims are live!</span> <span className="pr-4">Mainnet sim 2 coming in March!</span>
<ExternalLink href="https://fairground.wtf/"> <ExternalLink href="https://fairground.wtf/">
Come help stress test the network Learn more
</ExternalLink> </ExternalLink>
</div> </div>
</AnnouncementBanner> </AnnouncementBanner>

View File

@ -21,10 +21,8 @@ export function TemplateSidebar({ children, sidebar }: TemplateSidebarProps) {
<> <>
<AnnouncementBanner> <AnnouncementBanner>
<div className="font-alpha calt uppercase text-center text-lg text-white"> <div className="font-alpha calt uppercase text-center text-lg text-white">
<span className="pr-4">The Mainnet sims are live!</span> <span className="pr-4">Mainnet sim 2 coming in March!</span>
<ExternalLink href="https://fairground.wtf/"> <ExternalLink href="https://fairground.wtf/">Learn more</ExternalLink>
Come help stress test the network
</ExternalLink>
</div> </div>
</AnnouncementBanner> </AnnouncementBanner>
<Nav navbarTheme={VEGA_ENV === Networks.TESTNET ? 'yellow' : 'dark'} /> <Nav navbarTheme={VEGA_ENV === Networks.TESTNET ? 'yellow' : 'dark'} />

View File

@ -4,6 +4,7 @@ import {
Icon, Icon,
} from '@vegaprotocol/ui-toolkit'; } from '@vegaprotocol/ui-toolkit';
import { useGlobalStore } from '../../stores'; import { useGlobalStore } from '../../stores';
import React from 'react';
export const Banner = () => { export const Banner = () => {
const { update, shouldDisplayAnnouncementBanner } = useGlobalStore( const { update, shouldDisplayAnnouncementBanner } = useGlobalStore(
@ -28,10 +29,8 @@ export const Banner = () => {
<Icon name="cross" className="w-6 h-6" ariaLabel="dismiss" /> <Icon name="cross" className="w-6 h-6" ariaLabel="dismiss" />
</button> </button>
<div> <div>
<span className="pr-4">The Mainnet sims are live!</span> <span className="pr-4">Mainnet sim 2 coming in March!</span>
<ExternalLink href="https://fairground.wtf/"> <ExternalLink href="https://fairground.wtf/">Learn more</ExternalLink>
Come help stress test the network
</ExternalLink>
</div> </div>
</div> </div>
</AnnouncementBanner> </AnnouncementBanner>