From bf2ec8eba602ac09762f86420c5f45e5e3bc0ab9 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 2 Feb 2025 16:13:12 +0800 Subject: [PATCH 1/2] Migrate Roadmap/RoadmapActionCard/index.tsx to Shadcn --- .../Roadmap/RoadmapActionCard/index.tsx | 37 ++++++------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/src/components/Roadmap/RoadmapActionCard/index.tsx b/src/components/Roadmap/RoadmapActionCard/index.tsx index 60275f9b4eb..a60f7f2f84a 100644 --- a/src/components/Roadmap/RoadmapActionCard/index.tsx +++ b/src/components/Roadmap/RoadmapActionCard/index.tsx @@ -1,14 +1,8 @@ -import { - Center, - Flex, - Heading, - LinkBox, - LinkOverlay, - Text, -} from "@chakra-ui/react" - import { ButtonLink } from "@/components/Buttons" -import { Image } from "@/components/Image" +import { TwImage } from "@/components/Image" +import { Center, Flex } from "@/components/ui/flex" +import { LinkBox } from "@/components/ui/link-box" +import { LinkOverlay } from "@/components/ui/link-box" import futureProofing from "@/public/images/roadmap/roadmap-future.png" import security from "@/public/images/roadmap/roadmap-security.png" @@ -41,22 +35,15 @@ const RoadmapActionCard = ({ const imgSrc = images[image] ?? images.futureProofing return ( - -
- {alt} + +
+
- - - {title} - - {description} - - {buttonText} + +

{title}

+

{description}

+ + {buttonText}
From 7ad651999b420eca03e41b123f1410804defbdf7 Mon Sep 17 00:00:00 2001 From: Pablo Pettinari Date: Mon, 3 Feb 2025 20:03:16 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- src/components/Roadmap/RoadmapActionCard/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Roadmap/RoadmapActionCard/index.tsx b/src/components/Roadmap/RoadmapActionCard/index.tsx index a60f7f2f84a..dedba08c862 100644 --- a/src/components/Roadmap/RoadmapActionCard/index.tsx +++ b/src/components/Roadmap/RoadmapActionCard/index.tsx @@ -35,8 +35,8 @@ const RoadmapActionCard = ({ const imgSrc = images[image] ?? images.futureProofing return ( - -
+ +