fix: rework wallet screen
This commit is contained in:
parent
1f7ae74b42
commit
1f6d272aa0
103 changed files with 2094 additions and 3892 deletions
50
new-lamassu-admin/src/pages/Services/schemas/itbit.js
Normal file
50
new-lamassu-admin/src/pages/Services/schemas/itbit.js
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import * as Yup from 'yup'
|
||||
|
||||
import SecretInputFormik from 'src/components/inputs/formik/SecretInput'
|
||||
import TextInputFormik from 'src/components/inputs/formik/TextInput'
|
||||
|
||||
export default {
|
||||
code: 'itbit',
|
||||
name: 'Itbit',
|
||||
title: 'Itbit (Exchange)',
|
||||
elements: [
|
||||
{
|
||||
code: 'userId',
|
||||
display: 'User ID',
|
||||
component: TextInputFormik,
|
||||
face: true,
|
||||
long: true
|
||||
},
|
||||
{
|
||||
code: 'walletId',
|
||||
display: 'Wallet ID',
|
||||
component: TextInputFormik,
|
||||
face: true,
|
||||
long: true
|
||||
},
|
||||
{
|
||||
code: 'clientKey',
|
||||
display: 'Client Key',
|
||||
component: TextInputFormik
|
||||
},
|
||||
{
|
||||
code: 'clientSecret',
|
||||
display: 'Client Secret',
|
||||
component: SecretInputFormik
|
||||
}
|
||||
],
|
||||
validationSchema: Yup.object().shape({
|
||||
userId: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required('Required'),
|
||||
walletId: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required('Required'),
|
||||
clientKey: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required('Required'),
|
||||
clientSecret: Yup.string()
|
||||
.max(100, 'Too long')
|
||||
.required('Required')
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue