From b24c60e8bf5aa42af5e41c258c21709187080d40 Mon Sep 17 00:00:00 2001 From: zojgame Date: Tue, 23 Apr 2024 18:13:06 +0500 Subject: [PATCH] slider --- src/components/Button.tsx | 3 ++ .../companyPage/OurValues/OurValues.tsx | 2 +- .../companyPage/OurValues/Slider.tsx | 46 +++++++++++++++---- src/components/map/Map.tsx | 4 +- src/components/map/Marker.tsx | 2 +- src/index.css | 5 +- 6 files changed, 44 insertions(+), 18 deletions(-) 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 (