chore: reformat code

This commit is contained in:
Rafael Taranto 2025-05-12 14:49:39 +01:00
parent 3d930aa73b
commit aedabcbdee
509 changed files with 6030 additions and 4266 deletions

View file

@ -3,7 +3,7 @@ import * as Yup from 'yup'
import {
SecretInput,
TextInput,
Autocomplete
Autocomplete,
} from 'src/components/inputs/formik'
import { secretTest, buildCurrencyOptions } from './helper'
@ -19,12 +19,12 @@ const schema = markets => {
display: 'API key',
component: TextInput,
face: true,
long: true
long: true,
},
{
code: 'privateKey',
display: 'Private key',
component: SecretInput
component: SecretInput,
},
{
code: 'currencyMarket',
@ -33,10 +33,10 @@ const schema = markets => {
inputProps: {
options: buildCurrencyOptions(markets),
labelProp: 'display',
valueProp: 'code'
valueProp: 'code',
},
face: true
}
face: true,
},
],
getValidationSchema: account => {
return Yup.object().shape({
@ -47,10 +47,10 @@ const schema = markets => {
.max(100, 'The private key is too long')
.test(secretTest(account?.privateKey, 'private key')),
currencyMarket: Yup.string(
'The currency market must be a string'
).required('The currency market is required')
'The currency market must be a string',
).required('The currency market is required'),
})
}
},
}
}