fix: row stripeWhen prop
This commit is contained in:
parent
d714e0c7cb
commit
04c50a2dc5
3 changed files with 4 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ const ERow = ({ editing, disabled, lastOfGroup, newRow }) => {
|
|||
|
||||
const classes = useStyles()
|
||||
|
||||
const shouldStripe = stripeWhen && stripeWhen(values)
|
||||
const shouldStripe = !editing && stripeWhen && stripeWhen(values)
|
||||
|
||||
const innerElements = shouldStripe ? groupStriped(elements) : elements
|
||||
const [toSHeader] = R.partition(R.has('doubleHeader'))(elements)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ const Wallet = ({ name: SCREEN_KEY }) => {
|
|||
setOnChangeFunction(null)
|
||||
return it
|
||||
})
|
||||
|
||||
return (
|
||||
<>
|
||||
<TitleSection title="Wallet Settings" />
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { NumberInput } from 'src/components/inputs/formik'
|
|||
import Autocomplete from 'src/components/inputs/formik/Autocomplete.js'
|
||||
import { disabledColor } from 'src/styling/variables'
|
||||
import { CURRENCY_MAX } from 'src/utils/constants'
|
||||
import { transformNumber } from 'src/utils/number'
|
||||
|
||||
const classes = {
|
||||
editDisabled: {
|
||||
|
|
@ -24,7 +25,7 @@ const WalletSchema = Yup.object().shape({
|
|||
.required('Zero Conf Limit is a required field')
|
||||
.min(0)
|
||||
.max(CURRENCY_MAX)
|
||||
.transform(value => (isNaN(value) ? 0 : value))
|
||||
.transform(transformNumber)
|
||||
})
|
||||
|
||||
const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue