Skip to content

Commit 77c6649

Browse files
committed
feat: migrate CallToAction to tailwind
1 parent 19aee87 commit 77c6649

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Hero/CallToAction.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { ReactNode } from "react"
22

3-
import { Button, type ButtonProps } from "@/components/Buttons"
3+
import { Button, type ButtonProps } from "@/components/ui/buttons/Button"
44

5+
import { cn } from "@/lib/utils/cn"
56
import { type MatomoEventOptions, trackCustomEvent } from "@/lib/utils/matomo"
67

78
export type CallToActionProps = Omit<
@@ -24,7 +25,7 @@ export const CallToAction = ({
2425
const buttonProps: ButtonProps = {
2526
variant: index === 0 ? "solid" : "outline",
2627
isSecondary: index !== 0,
27-
flex: { base: 1, md: "initial" },
28+
className: cn("flex-[1] md:flex-[initial]", props?.className),
2829
}
2930

3031
return (

0 commit comments

Comments
 (0)