From 8f1f321758feccc59fd4e44478ecccb89c32b040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 15 Feb 2021 18:56:39 +0000 Subject: [PATCH] fix: notification fiat balance alert styling --- .../src/components/inputs/cashbox/Cashbox.js | 9 +++++++-- .../Notifications/sections/FiatBalanceAlerts.js | 14 ++++++++++++-- .../sections/FiatBalanceAlerts.styles.js | 11 +++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js index 9cbefaf9..5902c141 100644 --- a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js +++ b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js @@ -13,13 +13,18 @@ import { cashboxStyles, gridStyles } from './Cashbox.styles' const cashboxClasses = makeStyles(cashboxStyles) const gridClasses = makeStyles(gridStyles) -const Cashbox = ({ percent = 0, cashOut = false, className }) => { +const Cashbox = ({ + percent = 0, + cashOut = false, + className, + emptyPartClassName +}) => { const classes = cashboxClasses({ percent, cashOut }) const threshold = 51 return (
-
+
{percent <= threshold && {percent.toFixed(0)}%}
diff --git a/new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceAlerts.js b/new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceAlerts.js index 9fd38e51..d83a260f 100644 --- a/new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceAlerts.js +++ b/new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceAlerts.js @@ -76,7 +76,12 @@ const FiatBalance = ({
- +
Cassette 1 (Top)
- +
Cassette 2 (Bottom)