mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-17 14:56:20 +00:00
feat(tv): migrate login to white design with navigation modals
This commit is contained in:
14
utils/atoms/tvAccountSelectModal.ts
Normal file
14
utils/atoms/tvAccountSelectModal.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { atom } from "jotai";
|
||||
import type {
|
||||
SavedServer,
|
||||
SavedServerAccount,
|
||||
} from "@/utils/secureCredentials";
|
||||
|
||||
export type TVAccountSelectModalState = {
|
||||
server: SavedServer;
|
||||
onAccountSelect: (account: SavedServerAccount) => void;
|
||||
onAddAccount: () => void;
|
||||
onDeleteAccount: (account: SavedServerAccount) => void;
|
||||
} | null;
|
||||
|
||||
export const tvAccountSelectModalAtom = atom<TVAccountSelectModalState>(null);
|
||||
10
utils/atoms/tvServerActionModal.ts
Normal file
10
utils/atoms/tvServerActionModal.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { atom } from "jotai";
|
||||
import type { SavedServer } from "@/utils/secureCredentials";
|
||||
|
||||
export type TVServerActionModalState = {
|
||||
server: SavedServer;
|
||||
onLogin: () => void;
|
||||
onDelete: () => void;
|
||||
} | null;
|
||||
|
||||
export const tvServerActionModalAtom = atom<TVServerActionModalState>(null);
|
||||
Reference in New Issue
Block a user