From 165f1fd4eaeae01a0d29ebef24b10e31995eff68 Mon Sep 17 00:00:00 2001 From: jaanvi Date: Wed, 5 Mar 2025 18:27:32 +0530 Subject: [PATCH] update ui for dashboard --- src/components/LineChartCard/index.tsx | 14 +++++++------- src/components/OptionsMenu/index.tsx | 7 +++++-- src/components/ResourcePieChart/index.tsx | 6 +++--- src/components/SessionsChart/index.tsx | 14 +++++++------- src/components/StatCard/index.tsx | 6 +++--- src/components/barChartCard/index.tsx | 14 +++++++------- 6 files changed, 32 insertions(+), 29 deletions(-) diff --git a/src/components/LineChartCard/index.tsx b/src/components/LineChartCard/index.tsx index 069869c..fcaf4a5 100644 --- a/src/components/LineChartCard/index.tsx +++ b/src/components/LineChartCard/index.tsx @@ -43,20 +43,20 @@ export default function LineChartCard() { return (
Weekly - +
diff --git a/src/components/OptionsMenu/index.tsx b/src/components/OptionsMenu/index.tsx index 8ed491b..6501a32 100644 --- a/src/components/OptionsMenu/index.tsx +++ b/src/components/OptionsMenu/index.tsx @@ -77,9 +77,12 @@ export default function OptionsMenu({ avatar }: { avatar?: boolean }) { [`& .${dividerClasses.root}`]: { margin: "4px -4px", }, + backgroundColor:"#202020" }} > - Profile + + Profile + {/* My account Add another account @@ -99,7 +102,7 @@ export default function OptionsMenu({ avatar }: { avatar?: boolean }) { e.stopPropagation(); setLogoutModal(true); }} - sx={{color:"red"}} + sx={{ color: "red" }} > Logout diff --git a/src/components/ResourcePieChart/index.tsx b/src/components/ResourcePieChart/index.tsx index fa14a6d..f257558 100644 --- a/src/components/ResourcePieChart/index.tsx +++ b/src/components/ResourcePieChart/index.tsx @@ -32,14 +32,14 @@ export default function ResourcePieChart() { flexGrow: 1, width: "100%", height: "100%", - backgroundColor: "#F2F2F2", + backgroundColor: "#202020", }} > - + {entry.title} diff --git a/src/components/SessionsChart/index.tsx b/src/components/SessionsChart/index.tsx index 22c7ddb..381df18 100644 --- a/src/components/SessionsChart/index.tsx +++ b/src/components/SessionsChart/index.tsx @@ -12,7 +12,7 @@ export default function SessionsChart() { sx={{ width: "100%", height: "100%", - backgroundColor: "#F2F2F2", + backgroundColor: "#202020", p: 2, }} > @@ -20,7 +20,7 @@ export default function SessionsChart() { Delhi NCR EV Station - + {/* Grid container for the four boxes */} @@ -86,8 +86,8 @@ export default function SessionsChart() { height: "84px", borderRadius: "8px", p: "12px 16px", - backgroundColor: "#FFFFFF", - color: "#202020", + backgroundColor: "#272727", + color: "#F2F2F2", }} > {title} @@ -32,7 +32,7 @@ export default function StatCard({ title, value }: StatCardProps) {
Monthly - +