delete 1 file and update 1 file

master
mahdi andalib 3 years ago
parent 18e7495e00
commit 91c964b3f4
  1. 0
      src/components/ChartDesign/Recharts/index.js
  2. 25
      src/components/ChartDesign/index.js
  3. 10
      src/redux/data.js

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

@ -8,7 +8,7 @@ import Toast from "../components/Toast";
import Banners from "../components/Banners";
import Blog from "../components/Blog";
import CardTrelloDesign from "../components/CardTrelloDesign";
import Chart from "../components/Recharts";
import ChartDesign from "../components/ChartDesign";
// mini components
import MiniComponents from "../components/MiniComponents";
@ -204,12 +204,12 @@ const components = [
},
},
{
name: "Chart",
author: "Ashrafi",
name: "Chart Design",
author: "Ashrafi-Andalib",
props: [],
content: {
name: "Chart",
component: <Chart />,
name: "Chart Design",
component: <ChartDesign />,
code: null,
},
},

Loading…
Cancel
Save