Revize ca53e9f1
Přidáno uživatelem Schwobik před téměř 2 roky(ů)
src/pages/LoginPage.tsx | ||
---|---|---|
80 | 80 |
<FormControl.Label>Username</FormControl.Label> |
81 | 81 |
<Input |
82 | 82 |
// value={username} |
83 |
textContentType={"username"} |
|
84 |
autoComplete={"username"} |
|
85 |
onSubmitEditing={ () => { loginUser() } } |
|
83 | 86 |
onChangeText={ (username) => setUsername(username) } |
84 | 87 |
/> |
85 | 88 |
</FormControl> |
86 | 89 |
<FormControl> |
87 | 90 |
<FormControl.Label>Password</FormControl.Label> |
88 |
<Input type="password" |
|
89 |
// value={password} |
|
90 |
onChangeText={ (password) => setPassword(password) } |
|
91 |
<Input |
|
92 |
type="password" |
|
93 |
autoComplete={ "password" } |
|
94 |
id={ "password" } |
|
95 |
returnKeyType={ "done" } |
|
96 |
onSubmitEditing={ () => loginUser() } |
|
97 |
onChangeText={ (password) => setPassword(password) } |
|
91 | 98 |
/> |
92 |
<Link _text={ { |
|
93 |
fontSize: "xs", |
|
94 |
fontWeight: "500", |
|
95 |
color: "indigo.500" |
|
96 |
} } alignSelf="flex-end" mt="1"> |
|
97 |
Forget Password? |
|
98 |
</Link> |
|
99 | 99 |
</FormControl> |
100 | 100 |
<Button |
101 | 101 |
mt="2" |
102 | 102 |
colorScheme="indigo" |
103 |
onPress={ () => loginUser() }
|
|
103 |
onPress={ loginUser }
|
|
104 | 104 |
> |
105 | 105 |
Sign in |
106 | 106 |
</Button> |
Také k dispozici: Unified diff
Demo of listview implemented
re #10342