From 91c964b3f42e4ee2f90a6acbec191998f49bb97b Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Tue, 10 May 2022 16:02:46 +0430 Subject: [PATCH] delete 1 file and update 1 file --- .../{ => ChartDesign}/Recharts/index.js | 0 src/components/ChartDesign/index.js | 25 +++++++++++++++++++ src/redux/data.js | 10 ++++---- 3 files changed, 30 insertions(+), 5 deletions(-) rename src/components/{ => ChartDesign}/Recharts/index.js (100%) create mode 100644 src/components/ChartDesign/index.js 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, }, },