diff --git a/src/components/RangeSlider/InputSlider1/index.js b/src/components/RangeSlider/InputSlider1/index.js new file mode 100644 index 0000000..f789e75 --- /dev/null +++ b/src/components/RangeSlider/InputSlider1/index.js @@ -0,0 +1,8 @@ +import React from "react"; +import Slider from "rc-slider"; + +function RcSlider({}) { + return ; +} + +export default RcSlider; diff --git a/src/components/Range/index.js b/src/components/RangeSlider/Range2Sar/index.js similarity index 100% rename from src/components/Range/index.js rename to src/components/RangeSlider/Range2Sar/index.js diff --git a/src/components/RangeSlider/index.js b/src/components/RangeSlider/index.js new file mode 100644 index 0000000..490869f --- /dev/null +++ b/src/components/RangeSlider/index.js @@ -0,0 +1,25 @@ +import React, { useState } from "react"; + +import Range2Sar from "./Range2Sar"; + +function Advertisements() { + const list = { + 1: , + }; + const [type, setType] = useState(1); + return ( +
+ + {list[type]} +
+ ); +} + +export default Advertisements; diff --git a/src/redux/data.js b/src/redux/data.js index 193a0e9..449d28b 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -34,6 +34,7 @@ import Datepicker from "../components/Datepicker"; import SearchWithSuggestion from "../components/SearchWithSuggestion"; import SelectBox from "../components/SelectBox"; import ProductCategories from "../components/ProductCategories"; +import InputSlider from "../components/InputSlider"; // mini components import MiniComponents from "../components/MiniComponents"; @@ -687,6 +688,16 @@ const components = [ code: null, }, }, + { + name: "Input Slider", + author: "Ashrafi", + props: [], + content: { + name: "Input Slider", + component: , + code: null, + }, + }, // mini components { name: "Mini Components",