diff --git a/README.md b/README.md
index bcf2b33..d0487b6 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ If a contact sent a new message in less than 2 hours interval, and there is no t
## Screenshots
-
+
## Demo
diff --git a/frontend/src/components/MessagesList/index.js b/frontend/src/components/MessagesList/index.js
index 6e04f27..16f16a0 100644
--- a/frontend/src/components/MessagesList/index.js
+++ b/frontend/src/components/MessagesList/index.js
@@ -304,7 +304,7 @@ const MessagesList = () => {
} catch (err) {
console.log(err);
toast.error("Ticket não encontrado");
- history.push("/chat");
+ history.push("/tickets");
}
};
fetchMessages();
@@ -418,7 +418,7 @@ const MessagesList = () => {
} catch (err) {
console.log(err);
}
- history.push("/chat");
+ history.push("/tickets");
};
const handleDrawerOpen = () => {
diff --git a/frontend/src/components/NewTicketModal/index.js b/frontend/src/components/NewTicketModal/index.js
index 0f273b9..83769e2 100644
--- a/frontend/src/components/NewTicketModal/index.js
+++ b/frontend/src/components/NewTicketModal/index.js
@@ -85,7 +85,7 @@ const NewTicketModal = ({ modalOpen, onClose, contactId }) => {
userId: userId,
status: "open",
});
- history.push(`/chat/${ticket.id}`);
+ history.push(`/tickets/${ticket.id}`);
} catch (err) {
alert(err);
}
diff --git a/frontend/src/components/NotificationsPopOver/index.js b/frontend/src/components/NotificationsPopOver/index.js
index a1234f3..34917c1 100644
--- a/frontend/src/components/NotificationsPopOver/index.js
+++ b/frontend/src/components/NotificationsPopOver/index.js
@@ -116,7 +116,7 @@ const NotificationsPopOver = () => {
notification.onclick = function (event) {
event.preventDefault(); //
- window.open(`/chat/${ticket.id}`, "_self");
+ window.open(`/tickets/${ticket.id}`, "_self");
};
document.addEventListener("visibilitychange", () => {
@@ -137,7 +137,7 @@ const NotificationsPopOver = () => {
}, [setIsOpen]);
const handleSelectTicket = (e, ticket) => {
- history.push(`/chat/${ticket.id}`);
+ history.push(`/tickets/${ticket.id}`);
handleClickAway();
};
diff --git a/frontend/src/components/TicketListItem/index.js b/frontend/src/components/TicketListItem/index.js
index 04f3720..8494f4d 100644
--- a/frontend/src/components/TicketListItem/index.js
+++ b/frontend/src/components/TicketListItem/index.js
@@ -100,11 +100,11 @@ const TicketListItem = ({ ticket }) => {
} catch (err) {
alert(err);
}
- history.push(`/chat/${ticketId}`);
+ history.push(`/tickets/${ticketId}`);
};
const handleSelectTicket = (e, ticket) => {
- history.push(`/chat/${ticket.id}`);
+ history.push(`/tickets/${ticket.id}`);
};
return (
diff --git a/frontend/src/components/TicketOptionsMenu/index.js b/frontend/src/components/TicketOptionsMenu/index.js
index a3f7a5c..fc92752 100644
--- a/frontend/src/components/TicketOptionsMenu/index.js
+++ b/frontend/src/components/TicketOptionsMenu/index.js
@@ -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");
}
diff --git a/frontend/src/components/_layout/MainListItems.js b/frontend/src/components/_layout/MainListItems.js
index 79ba541..ebfa195 100644
--- a/frontend/src/components/_layout/MainListItems.js
+++ b/frontend/src/components/_layout/MainListItems.js
@@ -42,12 +42,12 @@ const MainListItems = () => {