diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 6c71813..dabeeae 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -10,6 +10,7 @@ interface ButtonProps { icon?: React.ReactNode; text?: string; className?: string; + onClick?: () => void; } const Button = ({ @@ -17,6 +18,7 @@ const Button = ({ icon, text, buttonType = "primary", + onClick, }: ButtonProps) => { const backgroundColor = backgroundColors[buttonType]; const backgroundHoverColor = backgroundHoverColors[buttonType]; @@ -24,6 +26,7 @@ const Button = ({ return (