File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
apps/frontend/src/app/profile Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,17 @@ import {
4
4
Avatar ,
5
5
Button ,
6
6
Col ,
7
- Divider ,
8
7
Form ,
9
8
Input ,
10
9
Layout ,
11
10
message ,
12
11
Row ,
12
+ Tooltip ,
13
13
} from "antd" ;
14
14
import { Content } from "antd/es/layout/layout" ;
15
15
import "./styles.scss" ;
16
16
import { EditOutlined , SaveOutlined } from "@ant-design/icons" ;
17
- import { useEffect , useState , useLayoutEffect } from "react" ;
17
+ import { useEffect , useState } from "react" ;
18
18
import {
19
19
UpdateUser ,
20
20
ValidateUser ,
@@ -117,14 +117,14 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
117
117
< Form . Item
118
118
name = "username"
119
119
label = "Username"
120
+ tooltip = "Unmodifable to prevent confusion in other users history when your username changes"
120
121
rules = { [
121
122
{
122
- required : true ,
123
123
message : "Please enter valid username!" ,
124
124
} ,
125
125
] }
126
126
>
127
- < Input name = "username" />
127
+ < Input name = "username" disabled />
128
128
</ Form . Item >
129
129
</ Col >
130
130
< Col span = { 12 } >
@@ -144,7 +144,11 @@ const ProfilePage = (props: ProfilePageProps): JSX.Element => {
144
144
</ Row >
145
145
< Row gutter = { 16 } >
146
146
< Col span = { 12 } >
147
- < Form . Item name = "password" label = "Password" >
147
+ < Form . Item
148
+ name = "password"
149
+ label = "Password"
150
+ tooltip = "Password is not updated if this field is left empty"
151
+ >
148
152
< Input . Password
149
153
name = "password"
150
154
type = "password"
You can’t perform that action at this time.
0 commit comments