diff --git a/src/components/Pages/profile/ProfileSettingsPage.tsx b/src/components/Pages/profile/ProfileSettingsPage.tsx index 6645d06f..9a376f45 100644 --- a/src/components/Pages/profile/ProfileSettingsPage.tsx +++ b/src/components/Pages/profile/ProfileSettingsPage.tsx @@ -64,7 +64,7 @@ export const ProfileSettingsPage = () => { return response.json() } - const handleUserpicUpload = async () => { + const handleAvatarClick = async () => { await selectFiles(async ([uploadFile]) => { try { setIsUserpicUpdating(true) @@ -99,9 +99,12 @@ export const ProfileSettingsPage = () => {
}> - + {form.name}
diff --git a/src/components/Pages/profile/Settings.module.scss b/src/components/Pages/profile/Settings.module.scss index 1ae1cade..0cafb96e 100644 --- a/src/components/Pages/profile/Settings.module.scss +++ b/src/components/Pages/profile/Settings.module.scss @@ -21,13 +21,13 @@ h5 { width: 18rem; } -.avatar, -.avatarInput { +.avatar { height: 100%; left: 0; position: absolute; top: 0; width: 100%; + cursor: pointer; } .avatar {