feat: add auth to tui

This commit is contained in:
Max Koon
2025-11-17 10:08:10 -05:00
parent 114eaf88eb
commit 9e11455db1
17 changed files with 388 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ import { Transactions } from "./transactions";
import { View, Text } from "react-native";
import { Settings } from "./settings";
import { useKeyboard } from "./useKeyboard";
import type { AuthData } from "@money/shared/auth";
const PAGES = {
@@ -41,10 +42,8 @@ type Routes<T> = {
export type Route = Routes<typeof PAGES>;
type Auth = any;
interface RouterContextType {
auth: Auth;
auth: AuthData | null;
route: Route;
setRoute: (route: Route) => void;
}
@@ -58,7 +57,7 @@ export const RouterContext = createContext<RouterContextType>({
type AppProps = {
auth: Auth;
auth: AuthData | null;
route: Route;
setRoute: (page: Route) => void;
}