- Replace split/responsive layout with unified clean form design - Update LoginScreen, RegisterScreen, and ForgotPasswordScreen styles - Add WelcomeScreen as new entry point for unauthenticated users - Redirect unauthenticated users to /welcome instead of /login - Add hrefAuthWelcome() navigation helper BREAKING CHANGE: Auth screens no longer support split layout, unified mobile-first design
12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
import { Redirect } from 'expo-router';
|
|
|
|
import { useAuthStore } from '../src/stores';
|
|
|
|
export default function Index() {
|
|
const isAuthenticated = useAuthStore((s) => s.isAuthenticated);
|
|
if (isAuthenticated) {
|
|
return <Redirect href="/home" />;
|
|
}
|
|
return <Redirect href="/welcome" />;
|
|
}
|