From 77c66498a1f902b00f3225dd33bb1a9eed0c13a9 Mon Sep 17 00:00:00 2001 From: saurabhburade Date: Fri, 23 Aug 2024 09:22:10 +0530 Subject: [PATCH] feat: migrate CallToAction to tailwind --- src/components/Hero/CallToAction.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Hero/CallToAction.tsx b/src/components/Hero/CallToAction.tsx index e27110e354c..08524be1612 100644 --- a/src/components/Hero/CallToAction.tsx +++ b/src/components/Hero/CallToAction.tsx @@ -1,7 +1,8 @@ import type { ReactNode } from "react" -import { Button, type ButtonProps } from "@/components/Buttons" +import { Button, type ButtonProps } from "@/components/ui/buttons/Button" +import { cn } from "@/lib/utils/cn" import { type MatomoEventOptions, trackCustomEvent } from "@/lib/utils/matomo" export type CallToActionProps = Omit< @@ -24,7 +25,7 @@ export const CallToAction = ({ const buttonProps: ButtonProps = { variant: index === 0 ? "solid" : "outline", isSecondary: index !== 0, - flex: { base: 1, md: "initial" }, + className: cn("flex-[1] md:flex-[initial]", props?.className), } return (