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

@ -44,12 +44,12 @@ const Wizard = ({
accounts,
fiatCurrency,
save,
error
error,
}) => {
const [{ step, config, accountsToSave }, setState] = useState({
step: 0,
config: { active: true },
accountsToSave: {}
accountsToSave: {},
})
const title = `Enable ${coin.display}`
@ -64,7 +64,7 @@ const Wizard = ({
const commonWizardSteps = [
{ type: 'ticker', ...tickers },
{ type: 'wallet', ...wallets },
{ type: 'exchange', ...exchanges }
{ type: 'exchange', ...exchanges },
]
const hasZeroConfs =
@ -75,14 +75,14 @@ const Wizard = ({
type: 'zeroConf',
name: 'confidence checking',
schema: Yup.object().shape({
zeroConfLimit: Yup.number().required()
zeroConfLimit: Yup.number().required(),
}),
...zeroConfs
...zeroConfs,
}
const zeroConfLimitStep = {
type: 'zeroConfLimit',
name: '0-conf limit'
name: '0-conf limit',
}
const wizardSteps = hasZeroConfs
@ -90,7 +90,7 @@ const Wizard = ({
commonWizardSteps,
has0Conf(coin)
? [confidenceCheckingStep]
: [confidenceCheckingStep, zeroConfLimitStep]
: [confidenceCheckingStep, zeroConfLimitStep],
)
: commonWizardSteps
@ -111,7 +111,7 @@ const Wizard = ({
setState({
step: step + 1,
config: newConfig,
accountsToSave: newAccounts
accountsToSave: newAccounts,
})
}