refactor: use es6 import keyword
This commit is contained in:
parent
2ff160cc68
commit
bcbae6f19a
1 changed files with 12 additions and 15 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { useQuery, useMutation } from '@apollo/react-hooks'
|
||||
import gql from 'graphql-tag'
|
||||
import { utils as coinUtils } from 'lamassu-coins'
|
||||
import * as R from 'ramda'
|
||||
import React from 'react'
|
||||
|
||||
|
|
@ -8,8 +9,6 @@ import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
|||
|
||||
import { AdvancedWalletSchema, getAdvancedWalletElements } from './helper'
|
||||
|
||||
const { utils: coinUtils } = require('lamassu-coins')
|
||||
|
||||
const SAVE_CONFIG = gql`
|
||||
mutation Save($config: JSONObject, $accounts: JSONObject) {
|
||||
saveConfig(config: $config)
|
||||
|
|
@ -44,19 +43,17 @@ const AdvancedWallet = () => {
|
|||
const cryptoCurrencies = data?.cryptoCurrencies ?? []
|
||||
|
||||
return (
|
||||
<>
|
||||
<EditableTable
|
||||
name="advancedWallet"
|
||||
namespaces={R.map(R.path(['code']))(cryptoCurrencies)}
|
||||
data={config}
|
||||
error={error?.message}
|
||||
enableEdit
|
||||
editWidth={174}
|
||||
save={save}
|
||||
validationSchema={AdvancedWalletSchema}
|
||||
elements={getAdvancedWalletElements(cryptoCurrencies, coinUtils)}
|
||||
/>
|
||||
</>
|
||||
<EditableTable
|
||||
name="advancedWallet"
|
||||
namespaces={R.map(R.path(['code']))(cryptoCurrencies)}
|
||||
data={config}
|
||||
error={error?.message}
|
||||
enableEdit
|
||||
editWidth={174}
|
||||
save={save}
|
||||
validationSchema={AdvancedWalletSchema}
|
||||
elements={getAdvancedWalletElements(cryptoCurrencies, coinUtils)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue