Fakultas Ilmu Komputer UI

Commit cf4b6ee1 authored by Zafir Rasyidi Taufik's avatar Zafir Rasyidi Taufik
Browse files

[CHORES]Add alert message when token in invalid, meaning account is not verified yet

parent 754511bb
Pipeline #81127 failed with stage
in 1 minute and 46 seconds
......@@ -31,6 +31,8 @@ import { Box, Text, Button, Gap } from 'components';
import ForgetPasswordPage from 'scenes/ForgetPasswordPage';
import OfficerSignupFormGoogleSignin from 'scenes/OfficerSignupFormGoogleSignin';
import WonderingIllustration from 'assets/illustrations/wondering.png';
const StyledApp = styled.SafeAreaView`
height: 100%;
width: 100%;
......@@ -186,6 +188,10 @@ const App = () => {
});
} else {
// Token is not valid
setAlert({
illustration: WonderingIllustration,
message: "Akun anda belum diaktifkan, silakan hubungi \nppticabangkotadepok@gmail.com",
})
setToken('')
}
}
......
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