Added tailwind, react query, removed lots of depends

This commit is contained in:
subnub
2024-06-19 15:29:27 -04:00
parent 67b28d69c7
commit 40473eb0f2
16 changed files with 543 additions and 178 deletions
+10
View File
@@ -0,0 +1,10 @@
import axios from "../axiosInterceptor";
export const getFilesList = async ({ queryKey, pageParam }) => {
console.log("quer", queryKey, pageParam);
const [_key, { parent, search, sortBy, limit }] = queryKey;
const response = await axios.get(
`/file-service/list?parent=${parent}&sortby=${sortBy}&search=${search}&limit=${limit}`
);
return response.data;
};
+9
View File
@@ -0,0 +1,9 @@
import axios from "../axiosInterceptor";
export const getFoldersList = async ({ queryKey }) => {
const [_key, { parent, search, sortBy, limit }] = queryKey;
const response = await axios.get(
`/folder-service/list?parent=${parent}&sortby=${sortBy}&search=${search}&limit=${limit}`
);
return response.data;
};