Skip to content

Commit d302664

Browse files
authored
User Profile Page UI (#3459)
Removed Account Creation Date section
1 parent 12708ed commit d302664

File tree

2 files changed

+14
-36
lines changed

2 files changed

+14
-36
lines changed

dashboard/src/modules/components/ProfileComponent/index.jsx

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,33 @@ import {
1010
Text,
1111
TextContent,
1212
TextVariants,
13-
isValidDate,
1413
} from "@patternfly/react-core";
15-
import { KeyIcon, UserAltIcon } from "@patternfly/react-icons";
1614

1715
import KeyManagementComponent from "./KeyManagement";
1816
import React from "react";
17+
import { UserAltIcon } from "@patternfly/react-icons";
1918
import avatar from "assets/images/avatar.jpg";
2019
import { useKeycloak } from "@react-keycloak/web";
2120

2221
const ProfileComponent = () => {
2322
const { keycloak } = useKeycloak();
2423

25-
const formatDate = (date) => {
26-
const registerDate = new Date(date);
27-
return isValidDate(registerDate)
28-
? registerDate.toLocaleDateString()
29-
: "----";
30-
};
3124
return (
3225
<div className={"profileDiv"}>
33-
<TextContent>
34-
<Text component={TextVariants.h2}>User Profile</Text>
35-
</TextContent>
26+
<Grid>
27+
<GridItem span={1} />
28+
<GridItem span={10}>
29+
<TextContent>
30+
<Text component={TextVariants.h2}>User Profile</Text>
31+
</TextContent>
32+
</GridItem>
33+
<GridItem span={1} />
34+
</Grid>
35+
3636
<div className="headerDiv">
3737
<Grid hasGutter>
38-
<GridItem span={8}>
38+
<GridItem span={1} />
39+
<GridItem span={10}>
3940
<Card className="card">
4041
<CardBody>
4142
<Level className="levelCard">
@@ -111,27 +112,7 @@ const ProfileComponent = () => {
111112
<KeyManagementComponent />
112113
</GridItem>
113114
</GridItem>
114-
<GridItem span={4}>
115-
<Card className="card">
116-
<CardBody>
117-
<div className="subHeader settings-wrapper">
118-
<KeyIcon />
119-
<span className="subHeader">Settings</span>
120-
</div>
121-
<Grid>
122-
<GridItem span={12} className="subCardDiv">
123-
<TextContent>
124-
{/* TODO: How to handle account creation date */}
125-
<span>Account creation Date</span>
126-
<Text component={TextVariants.h4}>
127-
{formatDate("MM/DD/YYYY")}
128-
</Text>
129-
</TextContent>
130-
</GridItem>
131-
</Grid>
132-
</CardBody>
133-
</Card>
134-
</GridItem>
115+
<GridItem span={1} />
135116
</Grid>
136117
</div>
137118
</div>

dashboard/src/modules/components/ProfileComponent/index.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
padding: var(--pf-global--spacer--xs) 0;
5353
}
5454
}
55-
.settings-wrapper {
56-
color: #6a6e73;
57-
}
5855
.item-container {
5956
padding: 2vh 0;
6057
.item-header {

0 commit comments

Comments
 (0)