From 8e23a805a9824c4cf4c35fa2bdce9e206ccb38b8 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Tue, 30 Sep 2025 15:43:04 +0700 Subject: [PATCH] chore: update Button component --- src/components/Button.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 79ecb6d9..a74a7e4f 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,4 +1,4 @@ -import react, { JSX } from 'react'; +import react from 'react'; import Link from 'next/link'; @@ -17,11 +17,12 @@ const Button = ({ type, href, variant, - color, + color = 'primary', isLoading, className, disabled, onClick, + ...props }: ButtonProps) => { const btnBaseClassName = cn( 'btn', @@ -49,6 +50,7 @@ const Button = ({ <> {!href && ( )}