Skip to content

Commit

Permalink
Atualização do layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Mar 27, 2023
1 parent a9f1acb commit 3005c56
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions frontend/src/pages/Connections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
SignalCellular4Bar,
CropFree,
DeleteOutline,
WhatsApp
} from "@material-ui/icons";

import MainContainer from "../../components/MainContainer";
Expand Down Expand Up @@ -311,15 +312,17 @@ const Connections = () => {
whatsAppId={!qrModalOpen && selectedWhatsApp?.id}
/>
<MainHeader>
<Title>{i18n.t("connections.title")}</Title>
<Title>{i18n.t("connections.title")} ({whatsApps.length})</Title>
<MainHeaderButtonsWrapper>
<Button
variant="contained"
color="primary"
onClick={handleOpenWhatsAppModal}
>
{i18n.t("connections.buttons.add")}
</Button>
<Tooltip title={i18n.t("connections.buttons.add")}>
<Button
variant="contained"
color="primary"
onClick={handleOpenWhatsAppModal}
>
<WhatsApp />
</Button>
</Tooltip>
</MainHeaderButtonsWrapper>
</MainHeader>
<Paper className={classes.mainPaper} variant="outlined">
Expand Down Expand Up @@ -371,11 +374,11 @@ const Connections = () => {
</TableCell>
<TableCell align="center">
{whatsApp.number ? (
<>
+{whatsApp.number}
</>
<>
+{whatsApp.number}
</>
) : "-"}

</TableCell>
<TableCell align="center">
{renderActionButtons(whatsApp)}
Expand Down

0 comments on commit 3005c56

Please sign in to comment.