Skip to content

Commit

Permalink
Remoção do ícone de bateria na conexão
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh authored Jun 8, 2022
1 parent b0f4cc6 commit 72d87fd
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions frontend/src/pages/Connections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
SignalCellularConnectedNoInternet2Bar,
SignalCellularConnectedNoInternet0Bar,
SignalCellular4Bar,
BatteryChargingFull,
CropFree,
DeleteOutline,
} from "@material-ui/icons";
Expand Down Expand Up @@ -290,23 +289,6 @@ const Connections = () => {
);
};

const renderStatusBattery = whatsApp => {
return (
<div className={classes.customTableCell}>
{whatsApp.battery < 20 && (
<CustomToolTip title={whatsApp.battery}>
<BatteryChargingFull color="secondary" />
</CustomToolTip>
)}
{whatsApp.battery > 20 && (
<CustomToolTip title={whatsApp.battery}>
<BatteryChargingFull style={{ color: green[500] }} />
</CustomToolTip>
)}
</div>
);
};

return (
<MainContainer>
<ConfirmationModal
Expand Down Expand Up @@ -349,9 +331,6 @@ const Connections = () => {
<TableCell align="center">
{i18n.t("connections.table.name")}
</TableCell>
<TableCell align="center">
{i18n.t("connections.table.battery")}
</TableCell>
<TableCell align="center">
{i18n.t("connections.table.status")}
</TableCell>
Expand Down Expand Up @@ -383,9 +362,6 @@ const Connections = () => {
<TableCell align="center">
{whatsApp.name}
</TableCell>
<TableCell align="center">
{renderStatusBattery(whatsApp)}
</TableCell>
<TableCell align="center">
{renderStatusToolTips(whatsApp)}
</TableCell>
Expand Down

0 comments on commit 72d87fd

Please sign in to comment.