made right section and main scetion into functional components and fixed styling

This commit is contained in:
subnub
2024-06-24 20:56:37 -04:00
parent b4b191b3a5
commit 9699a35f59
14 changed files with 506 additions and 1028 deletions
+9
View File
@@ -25,6 +25,15 @@ export const getFoldersList = async ({
return response.data;
};
export const getFolderInfo = async ({
queryKey,
}: QueryFunctionContext<[string, { id: string | undefined }]>) => {
const [_key, { id }] = queryKey;
if (!id) return undefined;
const response = await axios.get(`/folder-service/info/${id}`);
return response.data;
};
// PATCH
export const renameFolder = async (folderID: string, name: string) => {