Skip to content

Commit 21748e3

Browse files
authored
Merge pull request #14046 from 0xgun/migrate-ApplyNow
Migrate ApplyNow Components to shadcn/Tailwind
2 parents 3b683d5 + 20d3f86 commit 21748e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/Translatathon/ApplyNow.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Box, Flex } from "@chakra-ui/react"
2-
3-
import { ButtonLink } from "@/components/Buttons"
41
import Callout from "@/components/Callout"
52

3+
import { ButtonLink } from "../ui/buttons/Button"
4+
import { Flex } from "../ui/flex"
5+
66
import { APPLICATION_END_DATE, APPLICATION_URL } from "./constants"
77

88
import DolphinImage from "@/public/images/translatathon/translatathon_dolphin.png"
@@ -15,20 +15,20 @@ export const ApplyNow = () => {
1515

1616
if (dateToday < deadline) {
1717
return (
18-
<Box pt={12}>
18+
<div className="pt-12">
1919
<Callout
20-
flex="1 1 416px"
20+
className="flex-1 flex-shrink basis-[416px]"
2121
image={DolphinImage}
2222
titleKey="page-translatathon:translatathon-apply-now"
2323
descriptionKey="page-translatathon:translatathon-apply-now-desc"
2424
alignItems="center"
2525
textAlign="center"
2626
>
27-
<Flex m="auto">
27+
<Flex className="m-auto">
2828
<ButtonLink href={APPLICATION_URL}>Apply now</ButtonLink>
2929
</Flex>
3030
</Callout>
31-
</Box>
31+
</div>
3232
)
3333
} else {
3434
return <></>

0 commit comments

Comments
 (0)