Skip to content

Commit 8120142

Browse files
committed
refactor: update with current code conventions
1 parent a252172 commit 8120142

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/components/DevconGrantsBanner.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
import { Text } from "@chakra-ui/react"
22

3-
import DismissableBanner from "./Banners/DismissableBanner"
4-
import Emoji from "./Emoji"
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="🦄" />{" "}
18-
<Emoji text="🌏" /> Learn more{" "}
19-
<Link to="https://esp.ethereum.foundation/devcon-grants">here.</Link>
17+
and close to Southeast Asia <Emoji text="🦄" /> <Emoji text="🌏" />{" "}
18+
Learn more{" "}
19+
<Link href="https://esp.ethereum.foundation/devcon-grants">
20+
here.
21+
</Link>
2022
</Text>
2123
</DismissableBanner>
2224
)

0 commit comments

Comments
 (0)