Skip to content

Commit 5d4a8a2

Browse files
authored
Merge pull request #7855 from ethereum/confetti-patch
2 parents ab91a4a + ea36866 commit 5d4a8a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/Layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ const Layout: React.FC<IProps> = ({
195195
</div>
196196
</BannerNotification>
197197
<SkipLinkAnchor id="main-content" />
198-
{isMergePage && <Centered id="confetti-easter-egg" />}
198+
{(isMergePage || isHomepage) && (
199+
<Centered id="confetti-easter-egg" />
200+
)}
199201
<MainContainer>
200202
{shouldShowSideNav && (
201203
<VisuallyHidden isHidden={isZenMode}>

src/pages/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import SimpleTokenContent from "!!raw-loader!../data/SimpleToken.sol"
3131
import CreateWalletContent from "!!raw-loader!../data/CreateWallet.js"
3232
import SimpleDomainRegistryContent from "!!raw-loader!../data/SimpleDomainRegistry.sol"
3333
import { useConsoleEasterEgg } from "../hooks/useConsoleEasterEgg"
34-
import { useConfetti } from "../hooks/useConfetti"
3534

3635
const Hero = styled(GatsbyImage)`
3736
width: 100%;
@@ -426,7 +425,6 @@ const HomePage = ({
426425
}
427426

428427
useConsoleEasterEgg()
429-
useConfetti("confetti-easter-egg")
430428

431429
const cards = [
432430
{
@@ -571,7 +569,6 @@ const HomePage = ({
571569
alt={translateMessageId("page-index-hero-image-alt", intl)}
572570
loading="eager"
573571
/>
574-
<div id="confetti-easter-egg" />
575572
<Morpher />
576573
<Header>
577574
<H1>

0 commit comments

Comments
 (0)