(workspace.name);
const { currentWorkspace, isOwner } = useAppState();
const { updateWorkspace } = useWorkspaceHelper();
@@ -34,13 +34,13 @@ export const GeneralPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
updateWorkspace({ name: workspaceName }, currentWorkspace);
};
- const fileChange = async (file: File) => {
- setUploading(true);
- const blob = new Blob([file], { type: file.type });
- currentWorkspace &&
- (await updateWorkspace({ avatarBlob: blob }, currentWorkspace));
- setUploading(false);
- };
+ // const fileChange = async (file: File) => {
+ // setUploading(true);
+ // const blob = new Blob([file], { type: file.type });
+ // currentWorkspace &&
+ // (await updateWorkspace({ avatarBlob: blob }, currentWorkspace));
+ // setUploading(false);
+ // };
return workspace ? (
@@ -58,12 +58,13 @@ export const GeneralPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
workspaceUnit={workspace}
/>
-
-
+ */}
{/* TODO: add upload logic */}
{t('Workspace Name')}