Skip to content

Commit

Permalink
feat(dcellar-web-ui): only testnet show badge
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden-cao committed Oct 18, 2023
1 parent 815697e commit 4cb7b77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dcellar-web-ui/src/components/layout/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Header = memo<HeaderProps>(function Header({ taskManagement = true
<Link href="/" target="_blank" data-track-id="dc.main.nav.logo.click">
<IconFont type="logo" w={122} h={24} />
</Link>
<Badge>{networkTag(runtimeEnv)}</Badge>
{runtimeEnv === 'testnet' && <Badge>{networkTag(runtimeEnv)}</Badge>}
</LogoContainer>
<Content>
{taskManagement && (
Expand Down Expand Up @@ -61,8 +61,8 @@ const Content = styled(Flex)`
export const Badge = styled.span`
display: inline-flex;
border-radius: 2px;
color: var(--ui-colors-brand-normal-hight);
background-color: var(--ui-colors-scene-success-opacity-normal);
color: var(--ui-colors-brand-brand7);
background-color: var(--ui-colors-opacity1);
padding: 3px 4px;
font-size: 12px;
transform: scale(0.83333);
Expand Down

0 comments on commit 4cb7b77

Please sign in to comment.