Commit 93e645df authored by kavusi98's avatar kavusi98
Browse files

(#15) minor fixes in loginmodal

parent d01cb05f
......@@ -33,9 +33,14 @@ const LoginModal:React.FC<SignInProps> = ({isLoginModalVisible, setIsModalVisibl
'Quicksand-Regular': require('../../assets/fonts/Quicksand-Regular.ttf'),
})
const handleLogOut = () => {
logOut()
setIsModalVisible(false);
}
const handleSubmit = () => {
setUser(value);
setIsModalVisible;
setIsModalVisible(false);
}
if (!fontsLoaded) {
......@@ -81,7 +86,7 @@ const LoginModal:React.FC<SignInProps> = ({isLoginModalVisible, setIsModalVisibl
>
<Button
mode="contained"
onPress={() => logOut()}
onPress={handleLogOut}
color="white"
labelStyle={{
fontFamily: 'Quicksand-Regular',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment