diff --git a/frontend/src/components/Button.tsx b/frontend/src/components/Button.tsx index 47ddb49f704b220146695132c3b852f22586ff6b..6f8a0fe5d73e94a2b7e2cdfdef16ee533545bf40 100644 --- a/frontend/src/components/Button.tsx +++ b/frontend/src/components/Button.tsx @@ -4,6 +4,7 @@ interface ButtonProps { type?: "button" | "reset" | "submit" title: string, icon?: ReactNode + onClick?: () => void } export const Button = (props: ButtonProps) => { @@ -11,6 +12,7 @@ export const Button = (props: ButtonProps) => { <button className="border rounded p-4 hover:bg-neutral-200" type={props.type} + onClick={props.onClick} > <div className="flex"> {props.icon ?