Skip to content

Commit

Permalink
Merge pull request #1738 from kleros/chore/remove-testnet-banner
Browse files Browse the repository at this point in the history
chore(web): remove-testnet-banner
  • Loading branch information
jaybuidl authored Nov 6, 2024
2 parents 8efa874 + b837ec7 commit 99cd301
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
41 changes: 0 additions & 41 deletions web/src/layout/Header/TestnetBanner.tsx

This file was deleted.

6 changes: 1 addition & 5 deletions web/src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from "react";
import styled from "styled-components";

import { isProductionDeployment } from "consts/index";

import DesktopHeader from "./DesktopHeader";
import MobileHeader from "./MobileHeader";
import { TestnetBanner } from "./TestnetBanner";

const Container = styled.div`
position: sticky;
Expand All @@ -20,13 +17,12 @@ const Container = styled.div`

const HeaderContainer = styled.div`
width: 100%;
padding: 4px 24px 8px;
padding: 8px 24px;
`;

const Header: React.FC = () => {
return (
<Container>
{!isProductionDeployment() ? <TestnetBanner /> : null}
<HeaderContainer>
<DesktopHeader />
<MobileHeader />
Expand Down

0 comments on commit 99cd301

Please sign in to comment.