Implement workspace switching

This commit is contained in:
2024-10-26 23:15:23 +02:00
parent fd313c1d7f
commit 12312137b7
8 changed files with 189 additions and 91 deletions

View File

@@ -20,7 +20,7 @@ export const useFileList = () => {
console.error('Failed to load file list:', error);
setFiles([]);
}
}, [currentWorkspace, workspaceLoading]);
}, [currentWorkspace]);
return { files, loadFileList };
};

View File

@@ -38,7 +38,7 @@ export const useFileNavigation = () => {
});
}
},
[currentWorkspace, handleFileSelect]
[currentWorkspace]
);
return { handleLinkClick, selectedFile, isNewFile, handleFileSelect };

View File

@@ -21,7 +21,7 @@ export const useFileOperations = () => {
await handleCommitAndPush(commitMessage);
}
},
[settings, handleCommitAndPush]
[settings]
);
const handleSave = useCallback(