feat : change button attr type

This commit is contained in:
alij
2024-06-08 23:43:44 -07:00
parent ebb27a0182
commit 9efa06a971

View File

@@ -1,6 +1,6 @@
import { ButtonProps } from "../../types/props";
function Button({ children, onClick, extra, active,...attrs }: ButtonProps) {
function Button({ children, extra, active,...attrs }: ButtonProps) {
return (
<button
className={`px-4 py-1 md:px-5 md:py-2 rounded-md transition duration-300 ease-in-out transform bg-white text-[#333] hover:bg-gray-600 hover:text-white ${
@@ -8,7 +8,6 @@ function Button({ children, onClick, extra, active,...attrs }: ButtonProps) {
? "!bg-secondTheme shadow-secondTheme hover:shadow-gray-600 shadow-lg"
: ""
} ${extra}`}
onClick={onClick}
type="button"
{...attrs}
>