mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Move ActionData to separate file
This commit is contained in:
parent
4134683eb5
commit
a9a287d9fd
3 changed files with 5 additions and 8 deletions
|
@ -17,10 +17,7 @@ import Page from 'components/Page';
|
||||||
import ServerConnections from 'components/ServerConnections';
|
import ServerConnections from 'components/ServerConnections';
|
||||||
import globalize from 'lib/globalize';
|
import globalize from 'lib/globalize';
|
||||||
import { queryClient } from 'utils/query/queryClient';
|
import { queryClient } from 'utils/query/queryClient';
|
||||||
|
import { ActionData } from 'types/actionData';
|
||||||
interface ActionData {
|
|
||||||
isSaved: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
const BRANDING_CONFIG_KEY = 'branding';
|
const BRANDING_CONFIG_KEY = 'branding';
|
||||||
const BrandingOption = {
|
const BrandingOption = {
|
||||||
|
|
|
@ -10,10 +10,7 @@ import ServerConnections from 'components/ServerConnections';
|
||||||
import { useLogEntries } from 'apps/dashboard/features/logs/api/useLogEntries';
|
import { useLogEntries } from 'apps/dashboard/features/logs/api/useLogEntries';
|
||||||
import { useLogOptions } from 'apps/dashboard/features/logs/api/useLogOptions';
|
import { useLogOptions } from 'apps/dashboard/features/logs/api/useLogOptions';
|
||||||
import type { ServerConfiguration } from '@jellyfin/sdk/lib/generated-client/models/server-configuration';
|
import type { ServerConfiguration } from '@jellyfin/sdk/lib/generated-client/models/server-configuration';
|
||||||
|
import { ActionData } from 'types/actionData';
|
||||||
interface ActionData {
|
|
||||||
isSaved: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const action = async ({ request }: ActionFunctionArgs) => {
|
export const action = async ({ request }: ActionFunctionArgs) => {
|
||||||
const api = ServerConnections.getCurrentApi();
|
const api = ServerConnections.getCurrentApi();
|
||||||
|
|
3
src/types/actionData.ts
Normal file
3
src/types/actionData.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export interface ActionData {
|
||||||
|
isSaved: boolean;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue