diff --git a/src/components/Recharts/index.js b/src/components/ChartDesign/Recharts/index.js similarity index 100% rename from src/components/Recharts/index.js rename to src/components/ChartDesign/Recharts/index.js diff --git a/src/components/ChartDesign/index.js b/src/components/ChartDesign/index.js new file mode 100644 index 0000000..94a88df --- /dev/null +++ b/src/components/ChartDesign/index.js @@ -0,0 +1,25 @@ +import React, { useState } from "react"; + +import Recharts from "./Recharts"; + +function Blogs() { + const list = { + 1: , + }; + const [type, setType] = useState(1); + return ( +
+ + {list[type]} +
+ ); +} + +export default Blogs; diff --git a/src/redux/data.js b/src/redux/data.js index 011ed04..a473162 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -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: , + name: "Chart Design", + component: , code: null, }, },