From 378e2585200bb660a6abb18c72eced16186cbc58 Mon Sep 17 00:00:00 2001 From: ArraysID Date: Sat, 10 May 2025 07:30:06 +0700 Subject: [PATCH] feat: replace Link component with Button for improved button styling in Community component --- .../app/(frontend)/_components/community.tsx | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/apps/landing/src/app/(frontend)/_components/community.tsx b/apps/landing/src/app/(frontend)/_components/community.tsx index 7a32022..e114e2a 100644 --- a/apps/landing/src/app/(frontend)/_components/community.tsx +++ b/apps/landing/src/app/(frontend)/_components/community.tsx @@ -1,16 +1,13 @@ 'use client'; import { Icon } from '@iconify/react'; -import { buttonVariants } from '@imphnen-frontend-service/shadcn-ui/atoms'; -import { cn } from '@imphnen-frontend-service/utils'; +import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms'; import { CommunitiesSection } from 'apps/landing/src/payload-types'; import { motion, useInView } from 'framer-motion'; -import Link from 'next/link'; import { useRef } from 'react'; export function Community(props: CommunitiesSection) { const { items, stats } = props; - const ref = useRef(null); const isInView = useInView(ref, { once: true, amount: 0.2 }); @@ -80,15 +77,14 @@ export function Community(props: CommunitiesSection) {

{c.title}

{c.description}

- - {c.buttonText} - + + +