mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(web): search releases (#302)
* feat(releases): search in ui * refactor(releases): optimize query recent releases
This commit is contained in:
parent
38addb99e6
commit
258754643d
9 changed files with 153 additions and 13 deletions
|
@ -13,7 +13,6 @@ import { EmptyListState } from "../../components/emptystates";
|
|||
|
||||
import * as Icons from "../../components/Icons";
|
||||
import * as DataTable from "../../components/data-table";
|
||||
import { Fragment } from "react";
|
||||
|
||||
// This is a custom filter UI for selecting
|
||||
// a unique option from a list
|
||||
|
@ -180,8 +179,8 @@ export const ActivityTable = () => {
|
|||
], []);
|
||||
|
||||
const { isLoading, data } = useQuery(
|
||||
"dash_release",
|
||||
() => APIClient.release.find("?limit=10"),
|
||||
"dash_recent_releases",
|
||||
() => APIClient.release.findRecent(),
|
||||
{ refetchOnWindowFocus: false }
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue