mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +00:00
fix(web): circular dependencies (#1882)
This commit is contained in:
parent
4432dfb099
commit
80423d6273
7 changed files with 24 additions and 23 deletions
|
@ -4,13 +4,13 @@
|
|||
*/
|
||||
|
||||
import { useMutation, useSuspenseQuery } from "@tanstack/react-query";
|
||||
import { getRouteApi } from "@tanstack/react-router";
|
||||
import { toast } from "react-hot-toast";
|
||||
import Select from "react-select";
|
||||
|
||||
import { APIClient } from "@api/APIClient";
|
||||
import { ConfigQueryOptions } from "@api/queries";
|
||||
import { SettingsKeys } from "@api/query_keys";
|
||||
import { SettingsLogRoute } from "@app/routes";
|
||||
import Toast from "@components/notifications/Toast";
|
||||
import { LogLevelOptions, SelectOption } from "@domain/constants";
|
||||
|
||||
|
@ -58,8 +58,8 @@ const SelectWrapper = ({ id, value, onChange, options }: SelectWrapperProps) =>
|
|||
);
|
||||
|
||||
function LogSettings() {
|
||||
const ctx = SettingsLogRoute.useRouteContext()
|
||||
const queryClient = ctx.queryClient
|
||||
const settingsLogRoute = getRouteApi("/auth/authenticated-routes/settings/logs");
|
||||
const { queryClient} = settingsLogRoute.useRouteContext();
|
||||
|
||||
const configQuery = useSuspenseQuery(ConfigQueryOptions())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue