feat: some button style changes
This commit is contained in:
@@ -13,10 +13,10 @@ const button = tv({
|
||||
|
||||
interface ButtonProps {
|
||||
color?: "primary" | "secondary";
|
||||
onClick: () => void;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const Button: FunctionComponent<ButtonProps> = ({ children, onClick, color = "primary" }) => {
|
||||
const Button: FunctionComponent<ButtonProps> = ({ children, onClick = () => {}, color = "primary" }) => {
|
||||
return (
|
||||
<button type="button" class={button({ color: color })} onClick={onClick}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user