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 globalize from 'lib/globalize';
|
||||
import { queryClient } from 'utils/query/queryClient';
|
||||
|
||||
interface ActionData {
|
||||
isSaved: boolean
|
||||
}
|
||||
import { ActionData } from 'types/actionData';
|
||||
|
||||
const BRANDING_CONFIG_KEY = 'branding';
|
||||
const BrandingOption = {
|
||||
|
|
|
@ -10,10 +10,7 @@ import ServerConnections from 'components/ServerConnections';
|
|||
import { useLogEntries } from 'apps/dashboard/features/logs/api/useLogEntries';
|
||||
import { useLogOptions } from 'apps/dashboard/features/logs/api/useLogOptions';
|
||||
import type { ServerConfiguration } from '@jellyfin/sdk/lib/generated-client/models/server-configuration';
|
||||
|
||||
interface ActionData {
|
||||
isSaved: boolean;
|
||||
}
|
||||
import { ActionData } from 'types/actionData';
|
||||
|
||||
export const action = async ({ request }: ActionFunctionArgs) => {
|
||||
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