feat: galoy account setup

This commit is contained in:
José Oliveira 2022-04-12 17:27:38 +01:00 committed by siiky
parent f870b9f563
commit 688ec0bcbc
8 changed files with 87 additions and 7 deletions

View file

@ -39,7 +39,8 @@ const SAVE_ACCOUNTS = gql`
}
`
const isConfigurable = it => R.contains(it)(['infura', 'bitgo', 'trongrid'])
const isConfigurable = it =>
R.contains(it)(['infura', 'bitgo', 'trongrid', 'galoy'])
const isLocalHosted = it =>
R.contains(it)([
@ -167,6 +168,19 @@ const ChooseWallet = ({ data: currentData, addData }) => {
/>
</>
)}
{selected === 'galoy' && (
<>
<H4 noMargin>Enter wallet information</H4>
<FormRenderer
value={accounts.galoy}
save={saveWallet(selected)}
elements={schema.galoy.elements}
validationSchema={schema.galoy.getValidationSchema(accounts.galoy)}
buttonLabel={'Continue'}
buttonClass={classes.formButton}
/>
</>
)}
</div>
)
}