From 64905cd93e584722780964218bce02fc7f76b568 Mon Sep 17 00:00:00 2001 From: Theo DUPIN Date: Fri, 28 Oct 2022 17:35:40 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20page=20NavigationDashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NavigationDashboard.js | 45 +++++++++++++++++++++++++-- src/pages/Analyse.js | 30 ++---------------- src/pages/Compte.js | 30 ++---------------- 3 files changed, 47 insertions(+), 58 deletions(-) diff --git a/src/components/NavigationDashboard.js b/src/components/NavigationDashboard.js index 152f4a6..c39d0be 100644 --- a/src/components/NavigationDashboard.js +++ b/src/components/NavigationDashboard.js @@ -4,8 +4,49 @@ import { NavLink } from 'react-router-dom'; const NavigationDashboard = () => { return ( -
- +
+ +
+ +
+
+ +
+ + +
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+
+ +
+ +
+
); }; diff --git a/src/pages/Analyse.js b/src/pages/Analyse.js index c376c2f..c757bf7 100644 --- a/src/pages/Analyse.js +++ b/src/pages/Analyse.js @@ -1,6 +1,7 @@ import React from 'react'; import axios from 'axios' import Chart from 'chart.js/auto' +import NavigationDashboard from '../components/NavigationDashboard'; window.Chart = Chart const api = axios.create({ @@ -26,34 +27,7 @@ const Analyse = () => {
-
-
- -
-
- - - -
-
- -
-
- -
-
+
diff --git a/src/pages/Compte.js b/src/pages/Compte.js index 00015cc..e6674d7 100644 --- a/src/pages/Compte.js +++ b/src/pages/Compte.js @@ -1,4 +1,5 @@ import React from 'react'; +import NavigationDashboard from '../components/NavigationDashboard'; const Compte = () => { @@ -22,34 +23,7 @@ const Compte = () => {
-
-
- -
-
- - - -
-
- -
-
- -
-
+