fix: zero conf limit field value and ui font size

This commit is contained in:
José Oliveira 2021-11-11 00:41:04 +00:00
parent 561532339a
commit 293fc06d4b
2 changed files with 11 additions and 4 deletions

View file

@ -72,7 +72,6 @@ const Wizard = ({
) )
const configToSave = { const configToSave = {
...newConfig, ...newConfig,
zeroConfLimit: 0,
cryptoUnits: defaultCryptoUnit cryptoUnits: defaultCryptoUnit
} }
return save(toNamespace(coin.code, configToSave), newAccounts) return save(toNamespace(coin.code, configToSave), newAccounts)
@ -95,7 +94,7 @@ const Wizard = ({
return { type: 'exchange', ...exchanges } return { type: 'exchange', ...exchanges }
case 4: case 4:
return { return {
type: 'confidenceChecking', type: 'zeroConf',
name: 'confidence checking', name: 'confidence checking',
schema: Yup.object().shape({ schema: Yup.object().shape({
zeroConfLimit: Yup.number().required() zeroConfLimit: Yup.number().required()

View file

@ -1,4 +1,4 @@
import { errorColor } from 'src/styling/variables' import { errorColor, fontSize1, fontPrimary } from 'src/styling/variables'
const LABEL_WIDTH = 150 const LABEL_WIDTH = 150
@ -47,6 +47,14 @@ export default {
alignItems: 'center' alignItems: 'center'
}, },
zeroConfLimit: { zeroConfLimit: {
margin: 10 marginRight: 5,
'& > div': {
fontSize: fontSize1,
fontFamily: fontPrimary,
fontWeight: 300,
'& > input': {
padding: [[6, 0, 2]]
}
}
} }
} }