Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web): remove-testnet-banner #1738

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading