feat(mobile): (app) layout routes by userKeyState

This commit is contained in:
byGalax
2026-05-16 17:11:05 +02:00
parent 7ae1d5ba8c
commit 3b55fcaf2c
2 changed files with 32 additions and 9 deletions
+2 -2
View File
@@ -21,13 +21,13 @@ import { colors } from '../theme/colors';
// they tap the email link and Expo Router routes the deep link to
// app/auth/callback.tsx.
export default function Landing() {
const { session, loading } = useAuth();
const { session, ready } = useAuth();
const [email, setEmail] = useState('');
const [submitting, setSubmitting] = useState(false);
const [sent, setSent] = useState(false);
const [error, setError] = useState<string | null>(null);
if (loading) return null;
if (!ready) return null;
if (session) return <Redirect href="/(app)/chats" />;
async function handleSubmit() {