Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71fa9d9

Browse files
committed
Disable changing the profile pic url
1 parent 0a47e33 commit 71fa9d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/settings/ProfileSettings.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function ProfileSettings() {
3131
body: JSON.stringify({
3232
user: {
3333
// username: data.username,
34-
image: data.image,
34+
// image: data.image,
3535
account: {
3636
firstName: data.firstName,
3737
lastName: data.lastName,
@@ -133,6 +133,10 @@ export default function ProfileSettings() {
133133
}
134134
/>
135135
<Input
136+
disabled={true}
137+
readOnly={true}
138+
aria-readonly={true}
139+
aria-disabled={true}
136140
label="Profile Picture"
137141
type="url"
138142
name="image"

0 commit comments

Comments
 (0)