diff options
Diffstat (limited to 'src/app/(auth)/register.tsx')
| -rw-r--r-- | src/app/(auth)/register.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/(auth)/register.tsx b/src/app/(auth)/register.tsx index 1a39a78..0eeb058 100644 --- a/src/app/(auth)/register.tsx +++ b/src/app/(auth)/register.tsx @@ -1,6 +1,7 @@ import { Link } from 'expo-router'; import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native'; import { useRegister } from '@/features/auth/hooks/useRegister'; +import { StatusMessage } from '@/shared/ui/StatusMessage'; export default function RegisterScreen() { const { @@ -43,7 +44,7 @@ export default function RegisterScreen() { 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}> @@ -88,9 +89,6 @@ const styles = StyleSheet.create({ color: '#fff', fontWeight: '600', }, - error: { - color: 'red', - }, link: { marginTop: 12, }, |