fix: change cassette color in machine details
This commit is contained in:
parent
8240d4d8dc
commit
ac6046d74a
1 changed files with 3 additions and 0 deletions
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue