fix: fiat balance notification recycler label

This commit is contained in:
Rafael Taranto 2025-06-30 07:17:41 +01:00
parent 4b9d101233
commit 15e4cba0dc
2 changed files with 86 additions and 79 deletions

View file

@ -149,6 +149,7 @@ const FiatBalance = ({ section, fieldWidth = 80 }) => {
)} )}
</div> </div>
</Form> </Form>
{maxNumberOfRecyclers > 0 && (
<Form> <Form>
<PromptWhenDirty /> <PromptWhenDirty />
<Header <Header
@ -174,7 +175,9 @@ const FiatBalance = ({ section, fieldWidth = 80 }) => {
cashOut cashOut
/> />
<div className="w-30"> <div className="w-30">
<TL2 className="mt-0">Recycler {(it + 1) * 2 - 1}</TL2> <TL2 className="mt-0">
Recycler {(it + 1) * 2 - 1}
</TL2>
<EditableNumber <EditableNumber
label="Alert me under" label="Alert me under"
name={`fillingPercentageRecycler${(it + 1) * 2 - 1}`} name={`fillingPercentageRecycler${(it + 1) * 2 - 1}`}
@ -190,8 +193,9 @@ const FiatBalance = ({ section, fieldWidth = 80 }) => {
<div className="flex w-50 gap-4"> <div className="flex w-50 gap-4">
<Cashbox <Cashbox
percent={ percent={
values[`fillingPercentageRecycler${(it + 1) * 2}`] ?? values[
data[`recycler${(it + 1) * 2}`] `fillingPercentageRecycler${(it + 1) * 2}`
] ?? data[`recycler${(it + 1) * 2}`]
} }
isLow={false} isLow={false}
className="border-4 inline-block" className="border-4 inline-block"
@ -216,6 +220,7 @@ const FiatBalance = ({ section, fieldWidth = 80 }) => {
)} )}
</div> </div>
</Form> </Form>
)}
</div> </div>
)} )}
</Formik> </Formik>

View file

@ -185,6 +185,7 @@ const FiatBalanceOverrides = ({ config, section }) => {
) )
return ( return (
<div className="mt-4">
<EditableTable <EditableTable
name={NAME} name={NAME}
title="Overrides" title="Overrides"
@ -201,6 +202,7 @@ const FiatBalanceOverrides = ({ config, section }) => {
disableAdd={!suggestions?.length} disableAdd={!suggestions?.length}
setEditing={innerSetEditing} setEditing={innerSetEditing}
/> />
</div>
) )
} }