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

Shadcn migrate - DevconGrantsBanner #14012

Merged
Merged
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
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
Loading