Skip to content

Commit

Permalink
Merge pull request #12188 from ethereum/devcon-banner
Browse files Browse the repository at this point in the history
Devcon banner component update
  • Loading branch information
corwintines authored Feb 15, 2024
2 parents 7f703eb + 8120142 commit 914c315
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/DevconGrantsBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import Emoji from "react-emoji-render"
import { Text } from "@chakra-ui/react"

import DismissableBanner from "./Banners/DismissableBanner"
import Link from "./Link"
import DismissableBanner from "@/components/Banners/DismissableBanner"
import Emoji from "@/components/Emoji"
import Link from "@/components/Link"

interface IProps {
type DevconGrantsBannerProps = {
pathname: string
}

const DevconGrantsBanner: React.FC<IProps> = ({ pathname }) => {
const DevconGrantsBanner = ({ pathname }: DevconGrantsBannerProps) => {
if (pathname.includes("community") && pathname.includes("events")) {
return (
<DismissableBanner storageKey="devconGrants">
<Text m={0}>
The Road to Devcon Grants support Ethereum education initiatives in
and close to Southeast Asia <Emoji text="🌏🦄" />{" "}
and close to Southeast Asia <Emoji text="🦄" /> <Emoji text="🌏" />{" "}
Learn more{" "}
<Link to="https://esp.ethereum.foundation/devcon-grants">here.</Link>
<Link href="https://esp.ethereum.foundation/devcon-grants">
here.
</Link>
</Text>
</DismissableBanner>
)
Expand Down

0 comments on commit 914c315

Please sign in to comment.