feat : change button attr type
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { ButtonProps } from "../../types/props";
|
import { ButtonProps } from "../../types/props";
|
||||||
|
|
||||||
function Button({ children, onClick, extra, active,...attrs }: ButtonProps) {
|
function Button({ children, extra, active,...attrs }: ButtonProps) {
|
||||||
return (
|
return (
|
||||||
<button
|
<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 ${
|
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"
|
? "!bg-secondTheme shadow-secondTheme hover:shadow-gray-600 shadow-lg"
|
||||||
: ""
|
: ""
|
||||||
} ${extra}`}
|
} ${extra}`}
|
||||||
onClick={onClick}
|
|
||||||
type="button"
|
type="button"
|
||||||
{...attrs}
|
{...attrs}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user