Skip to content

Commit

Permalink
refactor(stakingcommunitycallout): migrate stakingcommunitycallout to…
Browse files Browse the repository at this point in the history
… tailwind/shadcn
  • Loading branch information
Baystef committed Oct 23, 2024
1 parent b7a0e55 commit 2b34f37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Staking/StakingCommunityCallout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react"
import { useTranslation } from "next-i18next"
import { Flex } from "@chakra-ui/react"

import { ButtonLink } from "@/components/Buttons"
import CalloutBanner from "@/components/CalloutBanner"
import { ButtonLink } from "@/components/ui/buttons/Button"
import { Flex } from "@/components/ui/flex"

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

Expand All @@ -26,8 +26,9 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
descriptionKey={"page-staking-join-community-desc"}
imageWidth={350}
>
<Flex gap={4} direction={{ base: "column", md: "row" }}>
<Flex className="flex-col gap-4 md:flex-row">
<ButtonLink
className="w-full md:w-auto"
onClick={() => {
trackCustomEvent({
eventCategory: `StakingCommunityCallout`,
Expand All @@ -36,11 +37,11 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
})
}}
href="https://discord.gg/ethstaker"
w={{ base: "full", md: "auto" }}
>
Discord
</ButtonLink>
<ButtonLink
className="w-full md:w-auto"
onClick={() => {
trackCustomEvent({
eventCategory: `StakingCommunityCallout`,
Expand All @@ -49,11 +50,11 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
})
}}
href="https://reddit.com/r/ethstaker"
w={{ base: "full", md: "auto" }}
>
Reddit
</ButtonLink>
<ButtonLink
className="w-full md:w-auto"
onClick={() => {
trackCustomEvent({
eventCategory: `StakingCommunityCallout`,
Expand All @@ -62,7 +63,6 @@ const StakingCommunityCallout = (props: StakingCommunityCalloutProps) => {
})
}}
href="https://ethstaker.cc"
w={{ base: "full", md: "auto" }}
>
{t("common:rollup-component-website")}
</ButtonLink>
Expand Down

0 comments on commit 2b34f37

Please sign in to comment.