refactor: login page

This commit is contained in:
Fredrik Burmester
2026-01-31 10:52:21 +01:00
parent 6e85c8d54a
commit 85a74a9a6a
27 changed files with 2422 additions and 1236 deletions

View File

@@ -9,9 +9,9 @@ import { store } from "@/utils/store";
interface ShowAccountSelectModalParams {
server: SavedServer;
onAccountSelect: (account: SavedServerAccount) => void;
onAccountAction: (account: SavedServerAccount) => void;
onAddAccount: () => void;
onDeleteAccount: (account: SavedServerAccount) => void;
onDeleteServer: () => void;
}
export const useTVAccountSelectModal = () => {
@@ -21,9 +21,9 @@ export const useTVAccountSelectModal = () => {
(params: ShowAccountSelectModalParams) => {
store.set(tvAccountSelectModalAtom, {
server: params.server,
onAccountSelect: params.onAccountSelect,
onAccountAction: params.onAccountAction,
onAddAccount: params.onAddAccount,
onDeleteAccount: params.onDeleteAccount,
onDeleteServer: params.onDeleteServer,
});
router.push("/tv-account-select-modal");
},