feat: fixed login

This commit is contained in:
2025-04-23 13:47:16 +03:00
parent c629f0dcf8
commit eb12afe763
2 changed files with 23 additions and 17 deletions

View File

@@ -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;