From ef97b7a51feb4d07e4b08223beeada13c5e23d47 Mon Sep 17 00:00:00 2001 From: Ansh101112 Date: Sat, 29 Jun 2024 22:29:14 +0530 Subject: [PATCH] admin new functionality added --- src/Dashboards/AdminD.js | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/src/Dashboards/AdminD.js b/src/Dashboards/AdminD.js index 15e0bfb..907e834 100644 --- a/src/Dashboards/AdminD.js +++ b/src/Dashboards/AdminD.js @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react"; import axios from "axios"; import { toast, ToastContainer } from "react-toastify"; import { useNavigate } from "react-router-dom"; +import Footer from "../components/Footer"; import { Chart as ChartJS, CategoryScale, @@ -43,6 +44,18 @@ const AdminD = () => { toast.error("Error doing logout. Try again."); } }; + + const handleSetting = () => { + navigate("/user/settings"); + }; + + const handleManageDatabase = () => { + window.open( + "mongodb+srv://usha15322:SmartSaver%402024@cluster0.nd5jrmm.mongodb.net/", + "_blank" + ); + }; + const [barData, setBarData] = useState({ labels: [], datasets: [ @@ -232,13 +245,27 @@ const AdminD = () => { - + +
+

Manage Database

+ +
+
+

Other Settings

+ +
+ ); };