diff --git a/src/screens/Login.js b/src/screens/Login.js
index 571ef5c..8513c42 100644
--- a/src/screens/Login.js
+++ b/src/screens/Login.js
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import { useForm, Controller } from 'react-hook-form';
import { KeyboardAvoidingView, ScrollView, StatusBar, View, StyleSheet, Image, Platform, Dimensions } from 'react-native';
-import { Button, TextInput, useTheme, Text, IconButton } from 'react-native-paper';
+import { Button, TextInput, HelperText, Text } from 'react-native-paper';
import { useDispatch, useSelector } from 'react-redux';
import { setIsLogin, setUser } from '../appredux/actions';
import { store } from '../appredux/store';
@@ -58,13 +58,16 @@ const LoginScreen = ({ route, navigation }) => {
label="Username"
onBlur={onBlur}
onChangeText={onChange}
- value={value}
style={{ marginTop: 10 }}
+ value={value}
/>
)}
name="username"
/>
- {errors.username && {strings('loginPage.usernameErrorMsg')}}
+ {errors.username &&
+
+ {strings('loginPage.usernameErrorMsg')}
+ }
{
)}
name="password"
/>
+ {errors.password &&
+
+ {strings('loginPage.passwordErrorMsg')}
+ }
- {errors.password && {strings('loginPage.passwordErrorMsg')}}