Skip to content

Commit

Permalink
fix: cta-button props
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Apr 6, 2024
1 parent 4104bd9 commit 3c76271
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 103 deletions.
1 change: 1 addition & 0 deletions public/swe-worker-4da67dda9bc18c53.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

102 changes: 0 additions & 102 deletions public/swe-worker-development.js

This file was deleted.

7 changes: 6 additions & 1 deletion src/components/ui/cta-button.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
'use client';

import Link from 'next/link';
import { twMerge } from 'tailwind-merge';

type BaseProps = {
text?: string;
children?: React.ReactNode;
className?: string;
};

type LinkProps = {
Expand Down Expand Up @@ -37,7 +39,10 @@ export default function CTAButton(props: Props) {
) : (
<button
{...props}
className={`h-[56px] w-[343px] rounded-[16px] text-[18px] font-[600] text-white shadow-[0_0_4px_0_rgba(0,0,0,0.25)] ${props.disabled ? 'bg-[#7D7D7D] shadow-none active:shadow-none ' : ' bg-primary-500 active:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.5)]'}`}
className={twMerge(
`h-[56px] w-[343px] rounded-[16px] text-[18px] font-[600] text-white shadow-[0_0_4px_0_rgba(0,0,0,0.25)] ${props.disabled ? 'bg-[#7D7D7D] shadow-none active:shadow-none ' : ' bg-primary-500 active:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.5)]'}`,
props.className,
)}
>
{props.text}
{props.children}
Expand Down

0 comments on commit 3c76271

Please sign in to comment.