summaryrefslogtreecommitdiffstats
path: root/src/app/(auth)/login.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/(auth)/login.tsx')
-rw-r--r--src/app/(auth)/login.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/(auth)/login.tsx b/src/app/(auth)/login.tsx
index 5664bbf..7457b54 100644
--- a/src/app/(auth)/login.tsx
+++ b/src/app/(auth)/login.tsx
@@ -1,6 +1,7 @@
import { Link } from 'expo-router';
import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
import { useLogin } from '@/features/auth/hooks/useLogin';
+import { StatusMessage } from '@/shared/ui/StatusMessage';
export default function LoginScreen() {
const { email, password, setEmail, setPassword, submit, isSubmitting, error } = useLogin();
@@ -26,7 +27,7 @@ export default function LoginScreen() {
onChangeText={setPassword}
/>
- {error ? <Text style={styles.error}>{error}</Text> : null}
+ {error ? <StatusMessage message={error} /> : null}
<Pressable style={styles.button} onPress={submit} disabled={isSubmitting}>
<Text style={styles.buttonText}>
@@ -71,9 +72,6 @@ const styles = StyleSheet.create({
color: '#fff',
fontWeight: '600',
},
- error: {
- color: 'red',
- },
link: {
marginTop: 12,
},