Skip to content

Commit

Permalink
Ajustes e Correção
Browse files Browse the repository at this point in the history
Ajustes no layout de carregamento e correção para apenas o Admin poder iniciar conversa sem escolher um Setor
  • Loading branch information
rtenorioh committed Mar 27, 2023
1 parent d32c171 commit 833cdeb
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions frontend/src/pages/Contacts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const useStyles = makeStyles((theme) => ({
avatar: {
width: "50px",
height: "50px",
borderRadius:"25%"
borderRadius: "25%"
}
}));

Expand Down Expand Up @@ -395,12 +395,20 @@ const Contacts = () => {
<TableCell align="center">{contact.number}</TableCell>
<TableCell align="center">{contact.email}</TableCell>
<TableCell align="center">
<IconButton
size="small"
onClick={() => handleSaveTicket(contact.id)}
>
<WhatsApp color="secondary" />
</IconButton>
<Can
role={user.profile}
perform="drawer-admin-items:view"
yes={() => (
<>
<IconButton
size="small"
onClick={() => handleSaveTicket(contact.id)}
>
<WhatsApp color="secondary" />
</IconButton>
</>
)}
/>
<IconButton
size="small"
onClick={() => hadleEditContact(contact.id)}
Expand All @@ -425,7 +433,7 @@ const Contacts = () => {
</TableCell>
</TableRow>
))}
{loading && <TableRowSkeleton avatar columns={4} />}
{loading && <TableRowSkeleton avatar columns={3} />}
</>
</TableBody>
</Table>
Expand Down

0 comments on commit 833cdeb

Please sign in to comment.