Urgent upload
parent
658191d90f
commit
3bfcf56ad8
|
@ -86,8 +86,8 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
|
|||
<TableRow className={classes.tableRowHead}>
|
||||
<TableCell>Nome</TableCell>
|
||||
<TableCell>Em Atendimento/Finalizado(s)</TableCell>
|
||||
<TableCell>Por Fila abertos</TableCell>
|
||||
<TableCell>Por Fila Fechados</TableCell>
|
||||
<TableCell>abertos Por Fila</TableCell>
|
||||
<TableCell>Fechados Por Fila</TableCell>
|
||||
<TableCell>Tempo Online</TableCell>
|
||||
<TableCell>Ações</TableCell>
|
||||
</TableRow>
|
||||
|
@ -137,10 +137,10 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
|
|||
<TableCell>
|
||||
<div style={{ display: "flex", alignItems: "center", gap: "12px" }}>
|
||||
<Typography className={classes.tableCounterOpen}>
|
||||
{user.sumOpen ? user.sumOpen.count : 0}
|
||||
{user.sumOpen === undefined ? 0 : user.sumOpen}
|
||||
</Typography>
|
||||
<Typography className={classes.tableCounterClosed}>
|
||||
{user.sumClosed ? user.sumClosed.count : 0}
|
||||
{user.sumClosed === undefined ? 0 : user.sumClosed.count}
|
||||
</Typography>
|
||||
</div>
|
||||
</TableCell>
|
||||
|
@ -154,8 +154,18 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
|
|||
gap: "12px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
className={classes.tableQueues}
|
||||
title="Sem Fila"
|
||||
style={{ backgroundColor: "grey" }}
|
||||
>
|
||||
{user.openClosedOutQueue.countOpen === 0
|
||||
? ""
|
||||
: user.openClosedOutQueue.countOpen}
|
||||
</Typography>
|
||||
|
||||
{!user.openClosedInQueue ? (
|
||||
<Typography>Sem fila</Typography>
|
||||
<Typography>Nenhuma fila atribuida</Typography>
|
||||
) : (
|
||||
user.openClosedInQueue.map((queue) => (
|
||||
<Typography
|
||||
|
@ -188,8 +198,17 @@ const TableUser = ({ classes, usersOnlineInfo, logout }) => {
|
|||
gap: "12px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
className={classes.tableQueues}
|
||||
title="Sem Fila"
|
||||
style={{ backgroundColor: "grey" }}
|
||||
>
|
||||
{user.openClosedOutQueue.countClosed === 0
|
||||
? ""
|
||||
: user.openClosedOutQueue.countClosed}
|
||||
</Typography>
|
||||
{!user.openClosedInQueue ? (
|
||||
<Typography>Sem fila</Typography>
|
||||
<Typography>Nenhuma fila atribuida</Typography>
|
||||
) : (
|
||||
user.openClosedInQueue.map((queue) => (
|
||||
<Typography
|
||||
|
|
|
@ -281,7 +281,7 @@ const Dashboard = () => {
|
|||
return () => {
|
||||
socket.disconnect();
|
||||
};
|
||||
}, []);
|
||||
}, [ticketStatusChange]);
|
||||
|
||||
useEffect(() => {
|
||||
if (ticketStatusChange === "") return console.log("foi");
|
||||
|
@ -488,6 +488,7 @@ const Dashboard = () => {
|
|||
usersOnlineInfo={usersOnlineInfo}
|
||||
logout={handleLogouOnlineUser}
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
</Paper>
|
||||
</Grid>
|
||||
|
|
Loading…
Reference in New Issue