feat(mobile): (app) layout routes by userKeyState
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user