Skip to content

Commit

Permalink
Merge pull request #14012 from saurabhburade/shadcn-migrate/DevconGra…
Browse files Browse the repository at this point in the history
…ntsBanner

Shadcn migrate - DevconGrantsBanner
  • Loading branch information
pettinarip authored Oct 2, 2024
2 parents aafab81 + c280108 commit f2ab047
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/DevconGrantsBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Text } from "@chakra-ui/react"

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

import { BaseLink } from "./ui/Link"

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

0 comments on commit f2ab047

Please sign in to comment.