diff --git a/src/Dashboards/UserD.js b/src/Dashboards/UserD.js
index f7bb7be..da3fb1e 100644
--- a/src/Dashboards/UserD.js
+++ b/src/Dashboards/UserD.js
@@ -5,8 +5,8 @@ import { useNavigate } from "react-router-dom";
import axios from "axios";
import { Link } from "react-router-dom";
import EditProductModal from "../components/EditProductModal";
-import DashboardOverview from './DashboardOverview';
-import './DashboardOverview.css';
+import DashboardOverview from "./DashboardOverview";
+import "./DashboardOverview.css";
const UserD = () => {
const isLoggedIn = localStorage.getItem("isLoggedIn") === "true";
@@ -105,6 +105,11 @@ const UserD = () => {
);
};
+ const formatDate = (dateString) => {
+ const options = { year: "numeric", month: "long", day: "numeric" };
+ return new Date(dateString).toLocaleDateString(undefined, options);
+ };
+
if (!isLoggedIn) {
return null;
}
@@ -120,7 +125,7 @@ const UserD = () => {
onUpdate={handleUpdate}
/>
-
Happy Saving!!
+ Happy Saving!!!
{currentUser && (
Welcome, {currentUser.name}!
@@ -131,33 +136,7 @@ const UserD = () => {
-
-