Skip to content

Commit bb3c60c

Browse files
committed
fix: afterSreCard button
1 parent 5d7000c commit bb3c60c

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

packages/react-app/src/components/AfterSreCard.jsx

+15-20
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react";
2-
import { chakra, ButtonGroup, Button, Center, Image, Flex, Text, Link, Box, VStack } from "@chakra-ui/react";
2+
import { chakra, Button, Center, Image, Flex, Text, Link, Box, VStack } from "@chakra-ui/react";
33
import useCustomColorModes from "../hooks/useCustomColorModes";
44

5-
const AfterSreCard = ({ title, description, externalLink, previewImage, backgroundColor }) => {
5+
const AfterSreCard = ({ title, description, externalLink, previewImage, backgroundColor, buttonText }) => {
66
const { borderColor, bgColor, primaryFontColor } = useCustomColorModes();
77
return (
88
<Center borderColor={borderColor} bgColor={backgroundColor}>
@@ -49,24 +49,19 @@ const AfterSreCard = ({ title, description, externalLink, previewImage, backgrou
4949
{description}
5050
</Text>
5151

52-
<ButtonGroup alignItems="center">
53-
<Button
54-
as={Link}
55-
href={externalLink}
56-
variant="solid"
57-
fontSize={{ base: "xl", lg: "lg" }}
58-
border="2px"
59-
backgroundColor={bgColor}
60-
borderColor={borderColor}
61-
isExternal
62-
py="1.25rem"
63-
px={6}
64-
>
65-
<chakra.span color={primaryFontColor} textTransform="uppercase">
66-
Join
67-
</chakra.span>
68-
</Button>
69-
</ButtonGroup>
52+
<Button
53+
as={Link}
54+
href={externalLink}
55+
fontSize={{ base: "xl", lg: "lg" }}
56+
colorScheme="green"
57+
isExternal
58+
py="1.25rem"
59+
px={6}
60+
textTransform="uppercase"
61+
textDecoration="none !important"
62+
>
63+
{buttonText}
64+
</Button>
7065
</VStack>
7166
</VStack>
7267
<Box

0 commit comments

Comments
 (0)