update 2 files and delete 1 file

master
mahdi 3 years ago
parent 2362ec7d55
commit 7ca9ad4aae
  1. 8
      src/components/RangeSlider/InputSlider1/index.js
  2. 0
      src/components/RangeSlider/Range2Sar/index.js
  3. 25
      src/components/RangeSlider/index.js
  4. 11
      src/redux/data.js

@ -0,0 +1,8 @@
import React from "react";
import Slider from "rc-slider";
function RcSlider({}) {
return <Slider />;
}
export default RcSlider;

@ -0,0 +1,25 @@
import React, { useState } from "react";
import Range2Sar from "./Range2Sar";
function Advertisements() {
const list = {
1: <Range2Sar />,
};
const [type, setType] = useState(1);
return (
<div className="w-full flex flex-col items-center">
<select
className="mb-10 w-20 bg-gray-200"
onChange={(e) => setType(e.target.value)}
>
{Object.keys(list).map((option, index) => (
<option key={index}>{option}</option>
))}
</select>
{list[type]}
</div>
);
}
export default Advertisements;

@ -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: <InputSlider />,
code: null,
},
},
// mini components
{
name: "Mini Components",

Loading…
Cancel
Save