Correção cadastro de vans
This commit is contained in:
@@ -340,22 +340,14 @@ const CadastroVan: React.FC = () => {
|
|||||||
</IonList>
|
</IonList>
|
||||||
|
|
||||||
<IonToast
|
<IonToast
|
||||||
color='danger'
|
position="top"
|
||||||
|
color={toastColor}
|
||||||
isOpen={showToast}
|
isOpen={showToast}
|
||||||
onDidDismiss={() => setShowToast(false)}
|
onDidDismiss={() => setShowToast(false)}
|
||||||
message={toastMessage}
|
message={toastMessage}
|
||||||
duration={2500}
|
duration={2500}
|
||||||
/>
|
|
||||||
</IonContent>
|
|
||||||
|
|
||||||
<IonToast
|
|
||||||
position="top"
|
|
||||||
color={toastColor}
|
|
||||||
isOpen={showToast}
|
|
||||||
onDidDismiss={() => setShowToast(false)}
|
|
||||||
message={toastMessage}
|
|
||||||
duration={2500}
|
|
||||||
/>
|
/>
|
||||||
|
</IonContent>
|
||||||
</IonPage>
|
</IonPage>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ interface CreateVanBody {
|
|||||||
export async function create(CreateVanBody: CreateVanBody) {
|
export async function create(CreateVanBody: CreateVanBody) {
|
||||||
updateHeader();
|
updateHeader();
|
||||||
|
|
||||||
const response = await instance.post(vansRoutes.create.url, CreateVanBody);
|
const response = await instance.post(vansRoutes.create.url, CreateVanBody, { headers: header });
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,4 +60,4 @@ export async function update(vanData: UpdateVanBody) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user