fix: change cassette color in machine details

This commit is contained in:
André Sá 2021-11-05 10:15:21 +00:00
parent 8240d4d8dc
commit ac6046d74a

View file

@ -61,6 +61,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
const cashout = fromNamespace('cashOut')(config) const cashout = fromNamespace('cashOut')(config)
const locale = fromNamespace('locale')(config) const locale = fromNamespace('locale')(config)
const fillingPercentageSettings = fromNamespace('notifications', config)
const fiatCurrency = locale?.fiatCurrency const fiatCurrency = locale?.fiatCurrency
const getCashoutSettings = deviceId => fromNamespace(deviceId)(cashout) const getCashoutSettings = deviceId => fromNamespace(deviceId)(cashout)
@ -92,6 +93,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
denomination={getCashoutSettings(deviceId)?.top} denomination={getCashoutSettings(deviceId)?.top}
currency={{ code: fiatCurrency }} currency={{ code: fiatCurrency }}
notes={value} notes={value}
threshold={fillingPercentageSettings.fillingPercentageCassette1}
/> />
), ),
input: NumberInput, input: NumberInput,
@ -111,6 +113,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
denomination={getCashoutSettings(deviceId)?.bottom} denomination={getCashoutSettings(deviceId)?.bottom}
currency={{ code: fiatCurrency }} currency={{ code: fiatCurrency }}
notes={value} notes={value}
threshold={fillingPercentageSettings.fillingPercentageCassette2}
/> />
) )
}, },