From f54ea4bf0cc4c9184f618904b71d8261004d2c3d Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 2 Feb 2025 21:33:51 +0800 Subject: [PATCH 1/3] Migrate CallToContribute/index.tsx to Shadcn --- src/components/CallToContribute/index.tsx | 61 +++++------------------ 1 file changed, 13 insertions(+), 48 deletions(-) diff --git a/src/components/CallToContribute/index.tsx b/src/components/CallToContribute/index.tsx index b79a85d43af..9db781e45ed 100644 --- a/src/components/CallToContribute/index.tsx +++ b/src/components/CallToContribute/index.tsx @@ -1,15 +1,15 @@ import React, { ReactNode } from "react" import { FaGithub } from "react-icons/fa" -import { Flex, FlexProps, Icon } from "@chakra-ui/react" +import { FlexProps } from "@chakra-ui/react" import { ChildOnlyProp } from "@/lib/types" -import { ButtonLink } from "@/components/Buttons" -import InlineLink from "@/components/Link" -import OldHeading from "@/components/OldHeading" -import Text from "@/components/OldText" import Translation from "@/components/Translation" +import { ButtonLink } from "../ui/buttons/Button" +import { Flex } from "../ui/flex" +import InlineLink from "../ui/Link" + export type CallToContributeProps = { editPath: string } @@ -19,47 +19,22 @@ const ContentColumn = (props: { hideBelow?: FlexProps["hideBelow"] }) => ( ) const DescriptionParagraph = ({ children }: ChildOnlyProp) => ( - - {children} - +

{children}

) const CallToContribute = ({ editPath }: CallToContributeProps) => { return ( - + ) } From 0177235dd0f5eb668c0211981865521844df6da3 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 2 Feb 2025 21:37:33 +0800 Subject: [PATCH 2/3] Correct className --- src/components/CallToContribute/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CallToContribute/index.tsx b/src/components/CallToContribute/index.tsx index 9db781e45ed..3cbbd4595a3 100644 --- a/src/components/CallToContribute/index.tsx +++ b/src/components/CallToContribute/index.tsx @@ -30,7 +30,7 @@ const DescriptionParagraph = ({ children }: ChildOnlyProp) => ( const CallToContribute = ({ editPath }: CallToContributeProps) => { return ( -