feat: fixed login
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FunctionComponent } from "preact";
|
||||
import { HTMLProps } from "preact/compat";
|
||||
import { tv } from "tailwind-variants";
|
||||
import classes from "./Button.module.scss";
|
||||
const button = tv({
|
||||
@@ -12,11 +13,9 @@ const button = tv({
|
||||
},
|
||||
});
|
||||
|
||||
interface ButtonProps {
|
||||
interface ButtonProps extends HTMLProps<HTMLButtonElement> {
|
||||
color?: "primary" | "secondary" | "red";
|
||||
onClick?: () => void;
|
||||
className?: string;
|
||||
type?: "button" | "submit";
|
||||
}
|
||||
|
||||
const Button: FunctionComponent<ButtonProps> = ({
|
||||
@@ -33,4 +32,6 @@ const Button: FunctionComponent<ButtonProps> = ({
|
||||
);
|
||||
};
|
||||
|
||||
Button.displayName = "AHButton";
|
||||
|
||||
export default Button;
|
||||
|
||||
Reference in New Issue
Block a user