From 7ca9ad4aae8a27c0455585a488ab2f47146de9e6 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 15 May 2022 16:56:37 +0430 Subject: [PATCH] update 2 files and delete 1 file --- .../RangeSlider/InputSlider1/index.js | 8 ++++++ .../{Range => RangeSlider/Range2Sar}/index.js | 0 src/components/RangeSlider/index.js | 25 +++++++++++++++++++ src/redux/data.js | 11 ++++++++ 4 files changed, 44 insertions(+) create mode 100644 src/components/RangeSlider/InputSlider1/index.js rename src/components/{Range => RangeSlider/Range2Sar}/index.js (100%) create mode 100644 src/components/RangeSlider/index.js 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",