fix: remove commented code
This commit is contained in:
parent
3572d27551
commit
ccc4f67c6b
2 changed files with 9 additions and 8 deletions
|
|
@ -31,7 +31,7 @@ const AutocompleteFormik = ({ options, onChange, ...props }) => {
|
||||||
setFieldValue(name, item)
|
setFieldValue(name, item)
|
||||||
}}
|
}}
|
||||||
onBlur={innerOnBlur}
|
onBlur={innerOnBlur}
|
||||||
value={value || ''}
|
value={value}
|
||||||
error={error}
|
error={error}
|
||||||
open={open}
|
open={open}
|
||||||
options={innerOptions}
|
options={innerOptions}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import { Autocomplete, NumberInput } from 'src/components/inputs/formik'
|
||||||
import { bold } from 'src/styling/helpers'
|
import { bold } from 'src/styling/helpers'
|
||||||
import { ReactComponent as TxInIcon } from 'src/styling/icons/direction/cash-in.svg'
|
import { ReactComponent as TxInIcon } from 'src/styling/icons/direction/cash-in.svg'
|
||||||
import { ReactComponent as TxOutIcon } from 'src/styling/icons/direction/cash-out.svg'
|
import { ReactComponent as TxOutIcon } from 'src/styling/icons/direction/cash-out.svg'
|
||||||
|
import { primaryColor, secondaryColorDark } from 'src/styling/variables'
|
||||||
import { CURRENCY_MAX } from 'src/utils/constants'
|
import { CURRENCY_MAX } from 'src/utils/constants'
|
||||||
|
|
||||||
const ALL_MACHINES = {
|
const ALL_MACHINES = {
|
||||||
|
|
@ -445,9 +446,9 @@ const getListCommissionsSchema = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// const getTextStyle = (obj, isEditing) => {
|
const getTextStyle = (obj, isEditing) => {
|
||||||
// return { color: obj.default ? primaryColor : secondaryColorDark }
|
return { color: obj.default ? primaryColor : secondaryColorDark }
|
||||||
// }
|
}
|
||||||
|
|
||||||
const commissionsList = (auxData, currency, auxElements) => {
|
const commissionsList = (auxData, currency, auxElements) => {
|
||||||
const getData = R.path(R.__, auxData)
|
const getData = R.path(R.__, auxData)
|
||||||
|
|
@ -482,7 +483,7 @@ const getListCommissionsFields = (getData, currency, defaults) => {
|
||||||
input: NumberInput,
|
input: NumberInput,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
suffix: '%',
|
suffix: '%',
|
||||||
// textStyle: obj => getTextStyle(obj),
|
textStyle: obj => getTextStyle(obj),
|
||||||
inputProps: {
|
inputProps: {
|
||||||
decimalPlaces: 3
|
decimalPlaces: 3
|
||||||
}
|
}
|
||||||
|
|
@ -496,7 +497,7 @@ const getListCommissionsFields = (getData, currency, defaults) => {
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
greenText: true,
|
greenText: true,
|
||||||
suffix: '%',
|
suffix: '%',
|
||||||
// textStyle: obj => getTextStyle(obj),
|
textStyle: obj => getTextStyle(obj),
|
||||||
inputProps: {
|
inputProps: {
|
||||||
decimalPlaces: 3
|
decimalPlaces: 3
|
||||||
}
|
}
|
||||||
|
|
@ -509,7 +510,7 @@ const getListCommissionsFields = (getData, currency, defaults) => {
|
||||||
doubleHeader: 'Cash-in only',
|
doubleHeader: 'Cash-in only',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
suffix: currency,
|
suffix: currency,
|
||||||
// textStyle: obj => getTextStyle(obj),
|
textStyle: obj => getTextStyle(obj),
|
||||||
inputProps: {
|
inputProps: {
|
||||||
decimalPlaces: 2
|
decimalPlaces: 2
|
||||||
}
|
}
|
||||||
|
|
@ -522,7 +523,7 @@ const getListCommissionsFields = (getData, currency, defaults) => {
|
||||||
doubleHeader: 'Cash-in only',
|
doubleHeader: 'Cash-in only',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
suffix: currency,
|
suffix: currency,
|
||||||
// textStyle: obj => getTextStyle(obj),
|
textStyle: obj => getTextStyle(obj),
|
||||||
inputProps: {
|
inputProps: {
|
||||||
decimalPlaces: 2
|
decimalPlaces: 2
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue