Add schedule and requests screens with workdays fetching and navigation
This commit is contained in:
@@ -20,6 +20,7 @@ export default function Index() {
|
||||
(async () => {
|
||||
const savedEmail = await SecureStore.getItemAsync('email');
|
||||
const savedPassword = await SecureStore.getItemAsync('password');
|
||||
console.log('Mentett email:', savedEmail, 'Mentett password:', savedPassword);
|
||||
if (savedEmail && savedPassword) {
|
||||
setUsername(savedEmail);
|
||||
setPassword(savedPassword);
|
||||
@@ -69,7 +70,7 @@ export default function Index() {
|
||||
ToastAndroid.show('Sikeres automatikus bejelentkezés', ToastAndroid.SHORT);
|
||||
} else {
|
||||
// iOS: custom toast helyett Alert
|
||||
Alert.alert('Sikeres automatikus bejelentkezés');
|
||||
console.log('Sikeres automatikus bejelentkezés');
|
||||
}
|
||||
}
|
||||
router.replace('/profile');
|
||||
|
Reference in New Issue
Block a user