Skip to content

Commit

Permalink
Merge pull request #1791 from ethereum/fix-eth2-banner
Browse files Browse the repository at this point in the history
Fix Eth2 banner display [Fixes #1768]
  • Loading branch information
ryancreatescopy committed Nov 11, 2020
2 parents fc0725a + 05481e5 commit e6d7e79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import SideNav from "./SideNav"
import SideNavMobile from "./SideNavMobile"

const ContentContainer = styled.div`
position: relative;
margin: 0px auto;
min-height: 100vh;
display: flex;
Expand Down Expand Up @@ -64,7 +65,7 @@ const Main = styled.main`
flex-grow: 1;
`

const StyledBanner = styled(BannerNotification)`
const StyledBannerNotification = styled(BannerNotification)`
margin-top: ${(props) => props.theme.variables.navHeight};
text-align: center;
`
Expand Down Expand Up @@ -144,13 +145,13 @@ class Layout extends React.Component {
path={path}
/>
{shouldShowBanner && (
<StyledBanner>
<StyledBannerNotification>
Staking has arrived! If you're looking to stake your ETH,{" "}
<Link to="/eth2/deposit-contract/">
confirm the deposit contract address
</Link>
.
</StyledBanner>
</StyledBannerNotification>
)}
<MainContainer
shouldShowBanner={shouldShowBanner}
Expand Down

0 comments on commit e6d7e79

Please sign in to comment.