Skip to content

Commit f222535

Browse files
committed
Migrate TranslatathonBanner to Shadcn/Tailwins
1 parent 72c2e1f commit f222535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Translatathon/TranslatathonBanner.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Center, Text } from "@chakra-ui/react"
2-
31
import DismissableBanner from "@/components/Banners/DismissableBanner"
42
import { ButtonLink } from "@/components/Buttons"
53

4+
import { Center } from "../ui/flex"
5+
66
export const TranslatathonBanner = ({ pathname }) => {
77
const todaysDate = new Date()
88
const translatathonStartDate = new Date("August 9, 2024 12:00:00 UTC")
@@ -12,8 +12,8 @@ export const TranslatathonBanner = ({ pathname }) => {
1212

1313
return todaysDate < translatathonStartDate && showBanner ? (
1414
<DismissableBanner storageKey="translatathon-banner">
15-
<Center gap={4}>
16-
<Text>🚨 Applications for the 2024 Translathathon are open 🚨</Text>
15+
<Center className="gap-4">
16+
<p>🚨 Applications for the 2024 Translathathon are open 🚨</p>
1717
<ButtonLink
1818
href="/contributing/translation-program/translatathon"
1919
variant="outline"

0 commit comments

Comments
 (0)