fix(mobile): type auth selectors and token placeholders
This commit is contained in:
parent
b2eb55e261
commit
217ed13329
@ -1,14 +1,14 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
|
import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native';
|
||||||
import { router } from 'expo-router';
|
import { router } from 'expo-router';
|
||||||
import { useAuthStore } from '../store/auth-store';
|
import { useAuthStore, type AuthState } from '../store/auth-store';
|
||||||
import { colors } from '../theme';
|
import { colors } from '../theme';
|
||||||
|
|
||||||
export default function AuthScreen() {
|
export default function AuthScreen() {
|
||||||
const [email, setEmail] = useState('');
|
const [email, setEmail] = useState('');
|
||||||
const [password, setPassword] = useState('');
|
const [password, setPassword] = useState('');
|
||||||
const signIn = useAuthStore((state) => state.signIn);
|
const signIn = useAuthStore((state: AuthState) => state.signIn);
|
||||||
const isLoading = useAuthStore((state) => state.isLoading);
|
const isLoading = useAuthStore((state: AuthState) => state.isLoading);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
@ -19,14 +19,14 @@ export default function AuthScreen() {
|
|||||||
keyboardType="email-address"
|
keyboardType="email-address"
|
||||||
onChangeText={setEmail}
|
onChangeText={setEmail}
|
||||||
placeholder="Email"
|
placeholder="Email"
|
||||||
placeholderTextColor="#7c8698"
|
placeholderTextColor={colors.textTertiary}
|
||||||
style={styles.input}
|
style={styles.input}
|
||||||
value={email}
|
value={email}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
onChangeText={setPassword}
|
onChangeText={setPassword}
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
placeholderTextColor="#7c8698"
|
placeholderTextColor={colors.textTertiary}
|
||||||
secureTextEntry
|
secureTextEntry
|
||||||
style={styles.input}
|
style={styles.input}
|
||||||
value={password}
|
value={password}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user