Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate StakingCommunityCallout Component to tailwind/shadcn #14223

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading