From d302664f0861d5865b9cc4471db0a0ebd2c7fec7 Mon Sep 17 00:00:00 2001 From: MVarshini Date: Fri, 9 Jun 2023 21:02:42 +0530 Subject: [PATCH] User Profile Page UI (#3459) Removed Account Creation Date section --- .../components/ProfileComponent/index.jsx | 47 ++++++------------- .../components/ProfileComponent/index.less | 3 -- 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/dashboard/src/modules/components/ProfileComponent/index.jsx b/dashboard/src/modules/components/ProfileComponent/index.jsx index 16df840e72..84f4f00fe7 100644 --- a/dashboard/src/modules/components/ProfileComponent/index.jsx +++ b/dashboard/src/modules/components/ProfileComponent/index.jsx @@ -10,32 +10,33 @@ import { Text, TextContent, TextVariants, - isValidDate, } from "@patternfly/react-core"; -import { KeyIcon, UserAltIcon } from "@patternfly/react-icons"; import KeyManagementComponent from "./KeyManagement"; import React from "react"; +import { UserAltIcon } from "@patternfly/react-icons"; import avatar from "assets/images/avatar.jpg"; import { useKeycloak } from "@react-keycloak/web"; const ProfileComponent = () => { const { keycloak } = useKeycloak(); - const formatDate = (date) => { - const registerDate = new Date(date); - return isValidDate(registerDate) - ? registerDate.toLocaleDateString() - : "----"; - }; return (
- - User Profile - + + + + + User Profile + + + + +
- + + @@ -111,27 +112,7 @@ const ProfileComponent = () => { - - - -
- - Settings -
- - - - {/* TODO: How to handle account creation date */} - Account creation Date - - {formatDate("MM/DD/YYYY")} - - - - -
-
-
+
diff --git a/dashboard/src/modules/components/ProfileComponent/index.less b/dashboard/src/modules/components/ProfileComponent/index.less index 8de9cd371a..f129472e34 100644 --- a/dashboard/src/modules/components/ProfileComponent/index.less +++ b/dashboard/src/modules/components/ProfileComponent/index.less @@ -52,9 +52,6 @@ padding: var(--pf-global--spacer--xs) 0; } } -.settings-wrapper { - color: #6a6e73; -} .item-container { padding: 2vh 0; .item-header {