mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +00:00
parent
e0aaa0bcab
commit
286f2f53f7
20 changed files with 61 additions and 63 deletions
|
@ -7,7 +7,6 @@ import { baseUrl, classNames, IsEmptyDate, simplifyDate } from "../../utils";
|
|||
import { Fragment, useRef, useState, useMemo } from "react";
|
||||
import { toast } from "react-hot-toast";
|
||||
import Toast from "../../components/notifications/Toast";
|
||||
import { queryClient } from "../../App";
|
||||
import { DeleteModal } from "../../components/modals";
|
||||
import {
|
||||
ArrowsRightLeftIcon,
|
||||
|
@ -141,6 +140,7 @@ function ListItem({ feed }: ListItemProps) {
|
|||
const [updateFormIsOpen, toggleUpdateForm] = useToggle(false);
|
||||
|
||||
const [enabled, setEnabled] = useState(feed.enabled);
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
const updateMutation = useMutation(
|
||||
(status: boolean) => APIClient.feeds.toggleEnable(feed.id, status),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue