Alterações e incluindo página Minhas Vans

This commit is contained in:
Matheus Albino Brunhara
2022-06-20 06:10:16 -05:00
parent c631bb9112
commit c6873625f5
6 changed files with 148 additions and 8 deletions

View File

@@ -78,7 +78,6 @@ const Perfil: React.FC<ScanNewProps> = (props) => {
);
const redirectUserToLogin = () => {
// TODO, não impede o usuário de retornar a página de login
history.push({ pathname: '/login' });
setToastMessage("Por favor, autentique-se!");
setShowToast(true);
@@ -271,6 +270,10 @@ const Perfil: React.FC<ScanNewProps> = (props) => {
<IonIcon icon={carOutline} slot="start" />
<IonLabel>Cadastrar Van</IonLabel>
</IonItem>
<IonItem button onClick={() => history.push({ pathname: '/minhas-vans'})}>
<IonIcon icon={carOutline} slot="start" />
<IonLabel>Minhas Vans</IonLabel>
</IonItem>
<IonItem>
<IonIcon icon={cardOutline} slot="start" />
<IonLabel>Pagamentos</IonLabel>