Added tailwind, react query, removed lots of depends
This commit is contained in:
@@ -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;
|
||||
};
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user