From 947fd5aa867da4c9c7c09890c9b07c64a8325637 Mon Sep 17 00:00:00 2001 From: Pablo Pettinari Date: Wed, 14 Jun 2023 17:42:36 -0300 Subject: [PATCH] migrate StakingCommunityCallout component --- .../Staking/StakingCommunityCallout.tsx | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/src/components/Staking/StakingCommunityCallout.tsx b/src/components/Staking/StakingCommunityCallout.tsx index 8311fa946dd..4ae5bc2cd59 100644 --- a/src/components/Staking/StakingCommunityCallout.tsx +++ b/src/components/Staking/StakingCommunityCallout.tsx @@ -1,8 +1,7 @@ import React from "react" import { useTranslation } from "gatsby-plugin-react-i18next" -import styled from "@emotion/styled" import { graphql, useStaticQuery } from "gatsby" -import { FlexProps } from "@chakra-ui/react" +import { Flex, FlexProps } from "@chakra-ui/react" import ButtonLink from "../ButtonLink" import CalloutBanner from "../CalloutBanner" @@ -11,20 +10,6 @@ import Translation from "../Translation" import { trackCustomEvent } from "../../utils/matomo" import { getImage } from "../../utils/image" -const ButtonContainer = styled.div` - display: flex; - gap: 1rem; - @media (max-width: ${({ theme }) => theme.breakpoints.m}) { - flex-direction: column; - } -` - -const StyledButtonLink = styled(ButtonLink)` - @media (max-width: ${({ theme }) => theme.breakpoints.s}) { - width: 100%; - } -` - export interface IProps extends FlexProps { id?: string } @@ -54,8 +39,8 @@ const StakingCommunityCallout: React.FC = (props) => { titleKey={"page-staking-join-community"} descriptionKey={"page-staking-join-community-desc"} > - - + { trackCustomEvent({ eventCategory: `StakingCommunityCallout`, @@ -64,10 +49,11 @@ const StakingCommunityCallout: React.FC = (props) => { }) }} to="https://discord.io/ethstaker" + w={{ base: "full", md: "auto" }} > Discord - - + { trackCustomEvent({ eventCategory: `StakingCommunityCallout`, @@ -76,10 +62,11 @@ const StakingCommunityCallout: React.FC = (props) => { }) }} to="https://reddit.com/r/ethstaker" + w={{ base: "full", md: "auto" }} > Reddit - - + { trackCustomEvent({ eventCategory: `StakingCommunityCallout`, @@ -88,10 +75,11 @@ const StakingCommunityCallout: React.FC = (props) => { }) }} to="https://ethstaker.cc" + w={{ base: "full", md: "auto" }} > - - + + ) }