File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- import Emoji from "react-emoji-render"
2
1
import { Text } from "@chakra-ui/react"
3
2
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"
6
6
7
- interface IProps {
7
+ type DevconGrantsBannerProps = {
8
8
pathname : string
9
9
}
10
10
11
- const DevconGrantsBanner : React . FC < IProps > = ( { pathname } ) => {
11
+ const DevconGrantsBanner = ( { pathname } : DevconGrantsBannerProps ) => {
12
12
if ( pathname . includes ( "community" ) && pathname . includes ( "events" ) ) {
13
13
return (
14
14
< DismissableBanner storageKey = "devconGrants" >
15
15
< Text m = { 0 } >
16
16
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 = "🌏 " /> { " " }
18
18
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 >
20
22
</ Text >
21
23
</ DismissableBanner >
22
24
)
You can’t perform that action at this time.
0 commit comments