feat: update avatar

This commit is contained in:
DiamondThree
2023-01-10 16:29:37 +08:00
parent 890e353dc7
commit 49dd21de57
4 changed files with 35 additions and 21 deletions
@@ -47,8 +47,9 @@ export const GeneralPage = ({ workspace }: { workspace: WorkspaceInfo }) => {
const fileChange = async (file: File) => {
// console.log('file: ', file);
setUploading(true);
// setUploading(true);
const blob = new Blob([file], { type: file.type });
updateWorkspace({ avatarBlob: blob }, currentWorkspace);
};
return workspace ? (