added trash features

This commit is contained in:
subnub
2024-06-29 01:13:23 -04:00
parent 9f0821253d
commit 576d92f724
26 changed files with 624 additions and 173 deletions
+5 -2
View File
@@ -84,11 +84,14 @@ export const getFileThumbnailAPI = async (thumbnailID: string) => {
export const getSuggestedListAPI = async ({
queryKey,
}: QueryFunctionContext<[string, { searchText: string }]>) => {
const [_key, { searchText }] = queryKey;
}: QueryFunctionContext<
[string, { searchText: string; trashMode: boolean }]
>) => {
const [_key, { searchText, trashMode }] = queryKey;
const response = await axios.get(`/file-service/suggested-list`, {
params: {
search: searchText,
trashMode,
},
});
return response.data;