This commit is contained in:
canove
2020-11-13 07:12:00 -03:00
parent efb6683f90
commit 43a17ba999

View File

@@ -188,10 +188,8 @@ const Contacts = () => {
} }
} }
setLoading(false); setLoading(false);
}; };
const hadleEditContact = contactId => { const hadleEditContact = contactId => {
setSelectedContactId(contactId); setSelectedContactId(contactId);
setContactModalOpen(true); setContactModalOpen(true);
@@ -318,9 +316,13 @@ const Contacts = () => {
<TableRow> <TableRow>
<TableCell padding="checkbox" /> <TableCell padding="checkbox" />
<TableCell>{i18n.t("contacts.table.name")}</TableCell> <TableCell>{i18n.t("contacts.table.name")}</TableCell>
<TableCell>{i18n.t("contacts.table.whatsapp")}</TableCell> <TableCell align="center">
<TableCell>{i18n.t("contacts.table.email")}</TableCell> {i18n.t("contacts.table.whatsapp")}
<TableCell align="right"> </TableCell>
<TableCell align="center">
{i18n.t("contacts.table.email")}
</TableCell>
<TableCell align="center">
{i18n.t("contacts.table.actions")} {i18n.t("contacts.table.actions")}
</TableCell> </TableCell>
</TableRow> </TableRow>
@@ -333,24 +335,21 @@ const Contacts = () => {
{<Avatar src={contact.profilePicUrl} />} {<Avatar src={contact.profilePicUrl} />}
</TableCell> </TableCell>
<TableCell>{contact.name}</TableCell> <TableCell>{contact.name}</TableCell>
<TableCell>{contact.number}</TableCell> <TableCell align="center">{contact.number}</TableCell>
<TableCell>{contact.email}</TableCell> <TableCell align="center">{contact.email}</TableCell>
<TableCell align="right"> <TableCell align="center">
<IconButton
<IconButton size = "small" size="small"
onClick = {()=> handleSaveTicket(contact.id)} onClick={() => handleSaveTicket(contact.id)}
> >
<WhatsAppIcon/> <WhatsAppIcon />
</IconButton> </IconButton>
<IconButton <IconButton
size="small" size="small"
onClick={() => hadleEditContact(contact.id)} onClick={() => hadleEditContact(contact.id)}
> >
<EditIcon />
<EditIcon />
</IconButton> </IconButton>
<IconButton <IconButton
size="small" size="small"
onClick={e => { onClick={e => {