feat: adding modal to edit profile

This commit is contained in:
Zamitto 2024-06-17 21:55:43 -03:00
parent 79ca354da1
commit af69509c61
9 changed files with 219 additions and 7 deletions

View file

@ -128,6 +128,8 @@ contextBridge.exposeInMainWorld("electron", {
/* Profile */
getMe: () => ipcRenderer.invoke("getMe"),
updateProfile: (displayName: string, newProfileImagePath: string | null) =>
ipcRenderer.invoke("updateProfile", displayName, newProfileImagePath),
/* User */
getUser: (userId: string) => ipcRenderer.invoke("getUser", userId),