fix: font size on commissions and cashout

This commit is contained in:
José Oliveira 2021-03-20 16:06:29 +00:00 committed by Josh Harvey
parent 254f4d83b4
commit 63b8e6a132
2 changed files with 14 additions and 7 deletions

View file

@ -23,7 +23,8 @@ export default {
} }
}, },
suffix: { suffix: {
marginLeft: 7 marginLeft: 7,
fontSize: '12px'
}, },
size: ({ size }) => bySize(size), size: ({ size }) => bySize(size),
bold bold

View file

@ -21,6 +21,12 @@ const DenominationsSchema = Yup.object().shape({
.max(currencyMax) .max(currencyMax)
}) })
const boldStyle = () => {
return {
fontWeight: 'bold'
}
}
const getElements = (machines, { fiatCurrency } = {}) => { const getElements = (machines, { fiatCurrency } = {}) => {
return [ return [
{ {
@ -34,7 +40,6 @@ const getElements = (machines, { fiatCurrency } = {}) => {
{ {
name: 'top', name: 'top',
header: 'Cassette 1 (Top)', header: 'Cassette 1 (Top)',
size: 'sm',
stripe: true, stripe: true,
width: 200, width: 200,
textAlign: 'right', textAlign: 'right',
@ -42,12 +47,12 @@ const getElements = (machines, { fiatCurrency } = {}) => {
inputProps: { inputProps: {
decimalPlaces: 0 decimalPlaces: 0
}, },
suffix: fiatCurrency suffix: fiatCurrency,
textStyle: boldStyle
}, },
{ {
name: 'bottom', name: 'bottom',
header: 'Cassette 2 (Bottom)', header: 'Cassette 2 (Bottom)',
size: 'sm',
stripe: true, stripe: true,
textAlign: 'right', textAlign: 'right',
width: 200, width: 200,
@ -55,12 +60,12 @@ const getElements = (machines, { fiatCurrency } = {}) => {
inputProps: { inputProps: {
decimalPlaces: 0 decimalPlaces: 0
}, },
suffix: fiatCurrency suffix: fiatCurrency,
textStyle: boldStyle
}, },
{ {
name: 'zeroConfLimit', name: 'zeroConfLimit',
header: '0-conf Limit', header: '0-conf Limit',
size: 'sm',
stripe: true, stripe: true,
textAlign: 'right', textAlign: 'right',
width: 200, width: 200,
@ -68,7 +73,8 @@ const getElements = (machines, { fiatCurrency } = {}) => {
inputProps: { inputProps: {
decimalPlaces: 0 decimalPlaces: 0
}, },
suffix: fiatCurrency suffix: fiatCurrency,
textStyle: boldStyle
} }
] ]
} }