diff --git a/src/App.tsx b/src/App.tsx index 8f57cb5..15be7b1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,6 +15,10 @@ function App() { } /> }> + + } /> + } /> + } /> } /> @@ -24,12 +28,9 @@ function App() { } /> } /> - } /> - } /> - } /> } /> - + } /> diff --git a/src/screens/LoginPage.tsx b/src/screens/LoginPage.tsx index d5949cb..1308aa6 100644 --- a/src/screens/LoginPage.tsx +++ b/src/screens/LoginPage.tsx @@ -5,7 +5,7 @@ import { APP_ID } from '../api/config'; import { Button } from '../components/buttons'; import { Card, Input } from '../components/reusable'; -/** Login gate. Redirects to /orders once authenticated. */ +/** Login gate. Redirects to /daily once authenticated. */ export function LoginPage() { const { authed, login } = useAuth(); const navigate = useNavigate(); @@ -15,7 +15,7 @@ export function LoginPage() { const [busy, setBusy] = useState(false); const [error, setError] = useState(null); - if (authed) return ; + if (authed) return ; async function submit(e: FormEvent) { e.preventDefault(); @@ -23,7 +23,7 @@ export function LoginPage() { setError(null); try { await login(email, password, orgId || undefined); - navigate('/orders', { replace: true }); + navigate('/daily', { replace: true }); } catch (err) { setError((err as { message?: string })?.message ?? 'Login failed'); } finally {