Skip to content

Commit 79dd7b1

Browse files
authored
Merge pull request #14223 from Baystef/migrate/stakingcommunitycallout
Migrate StakingCommunityCallout Component to tailwind/shadcn
2 parents 88f3491 + 2b34f37 commit 79dd7b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/Staking/StakingCommunityCallout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react"
22
import { useTranslation } from "next-i18next"
3-
import { Flex } from "@chakra-ui/react"
43

5-
import { ButtonLink } from "@/components/Buttons"
64
import CalloutBanner from "@/components/CalloutBanner"
5+
import { ButtonLink } from "@/components/ui/buttons/Button"
6+
import { Flex } from "@/components/ui/flex"
77

88
import { trackCustomEvent } from "@/lib/utils/matomo"
99

@@ -26,8 +26,9 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
2626
descriptionKey={"page-staking-join-community-desc"}
2727
imageWidth={350}
2828
>
29-
<Flex gap={4} direction={{ base: "column", md: "row" }}>
29+
<Flex className="flex-col gap-4 md:flex-row">
3030
<ButtonLink
31+
className="w-full md:w-auto"
3132
onClick={() => {
3233
trackCustomEvent({
3334
eventCategory: `StakingCommunityCallout`,
@@ -36,11 +37,11 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
3637
})
3738
}}
3839
href="https://discord.gg/ethstaker"
39-
w={{ base: "full", md: "auto" }}
4040
>
4141
Discord
4242
</ButtonLink>
4343
<ButtonLink
44+
className="w-full md:w-auto"
4445
onClick={() => {
4546
trackCustomEvent({
4647
eventCategory: `StakingCommunityCallout`,
@@ -49,11 +50,11 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
4950
})
5051
}}
5152
href="https://reddit.com/r/ethstaker"
52-
w={{ base: "full", md: "auto" }}
5353
>
5454
Reddit
5555
</ButtonLink>
5656
<ButtonLink
57+
className="w-full md:w-auto"
5758
onClick={() => {
5859
trackCustomEvent({
5960
eventCategory: `StakingCommunityCallout`,
@@ -62,7 +63,6 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
6263
})
6364
}}
6465
href="https://ethstaker.cc"
65-
w={{ base: "full", md: "auto" }}
6666
>
6767
{t("common:rollup-component-website")}
6868
</ButtonLink>

0 commit comments

Comments
 (0)