Skip to content

Commit 914c315

Browse files
authored
Merge pull request #12188 from ethereum/devcon-banner
Devcon banner component update
2 parents 7f703eb + 8120142 commit 914c315

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/DevconGrantsBanner.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
import Emoji from "react-emoji-render"
21
import { Text } from "@chakra-ui/react"
32

4-
import DismissableBanner from "./Banners/DismissableBanner"
5-
import Link from "./Link"
3+
import DismissableBanner from "@/components/Banners/DismissableBanner"
4+
import Emoji from "@/components/Emoji"
5+
import Link from "@/components/Link"
66

7-
interface IProps {
7+
type DevconGrantsBannerProps = {
88
pathname: string
99
}
1010

11-
const DevconGrantsBanner: React.FC<IProps> = ({ pathname }) => {
11+
const DevconGrantsBanner = ({ pathname }: DevconGrantsBannerProps) => {
1212
if (pathname.includes("community") && pathname.includes("events")) {
1313
return (
1414
<DismissableBanner storageKey="devconGrants">
1515
<Text m={0}>
1616
The Road to Devcon Grants support Ethereum education initiatives in
17-
and close to Southeast Asia <Emoji text="🌏🦄" />{" "}
17+
and close to Southeast Asia <Emoji text="🦄" /> <Emoji text="🌏" />{" "}
1818
Learn more{" "}
19-
<Link to="https://esp.ethereum.foundation/devcon-grants">here.</Link>
19+
<Link href="https://esp.ethereum.foundation/devcon-grants">
20+
here.
21+
</Link>
2022
</Text>
2123
</DismissableBanner>
2224
)

0 commit comments

Comments
 (0)