From a7bea8ebdbe57674ec27bc60a22539029b6944f4 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Thu, 17 Feb 2022 18:23:16 +0330 Subject: [PATCH] slider added --- src/App.js | 4 +++- src/components/Digikala/ImageSlider.js | 2 +- src/components/Digikala/SliderData.js | 12 +++++------- src/components/Digikala/index.js | 6 +++++- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/App.js b/src/App.js index 564558b..815fbfe 100644 --- a/src/App.js +++ b/src/App.js @@ -44,7 +44,8 @@ import TableDesign1 from "./components/Table/Design1"; import ReactTable2 from "./components/ReactTable2"; // import ReactTable3 from "./components/ReactTable3"; import ReactTable4 from "./components/ReactTable4"; -import Digikala from "./components/Digikala/ImageSlider"; +import Digikala from "./components/Digikala"; +// import Digikala from "./components/Digikala/ImageSlider"; import Switch from "./components/Switch"; @@ -94,6 +95,7 @@ function App() { {/* */} {/* */} + {/* */} ); diff --git a/src/components/Digikala/ImageSlider.js b/src/components/Digikala/ImageSlider.js index b69ea0c..78013e2 100644 --- a/src/components/Digikala/ImageSlider.js +++ b/src/components/Digikala/ImageSlider.js @@ -23,7 +23,7 @@ const ImageSlider = ({ slides }) => { return (
-
+
{slides.map((slide, index) => { return (
{ - return ; + return ( +
+ +
+ ); }; export default Digikala;