fix: fiat balance notification recycler label
This commit is contained in:
parent
4b9d101233
commit
15e4cba0dc
2 changed files with 86 additions and 79 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue