|
@ -79,7 +79,9 @@ function AccountScreen(props) { |
|
|
|
|
|
|
|
|
console.log(user); |
|
|
console.log(user); |
|
|
const logout = () => { |
|
|
const logout = () => { |
|
|
setUser(null); |
|
|
|
|
|
|
|
|
setShowLog(false) |
|
|
|
|
|
setUser(true); |
|
|
|
|
|
props.navigation.navigate("Home") |
|
|
authStorage.removeToken(); |
|
|
authStorage.removeToken(); |
|
|
authStorage.removeUser(); |
|
|
authStorage.removeUser(); |
|
|
}; |
|
|
}; |
|
|