improvement: better names in pages, folders and routes

This commit is contained in:
canove
2020-09-03 18:31:12 -03:00
parent 514f1c3b75
commit c032ec309a
12 changed files with 22 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ const TicketOptionsMenu = ({ ticket, menuOpen, handleClose, anchorEl }) => {
try {
await api.delete(`/tickets/${ticket.id}`);
toast.success("Ticket deletado com sucesso.");
history.push("/chat");
history.push("/tickets");
} catch (err) {
toast.error("Erro ao deletar o ticket");
}