PR updates
This commit is contained in:
@@ -21,7 +21,7 @@ export const useGetBalance = (): TUseGetBalance => {
|
|||||||
.then((balance) => {
|
.then((balance) => {
|
||||||
setBalance(balance as Balance)
|
setBalance(balance as Balance)
|
||||||
})
|
})
|
||||||
.catch((e) => setError(e))
|
.catch(setError)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
} from '@material-ui/core'
|
} from '@material-ui/core'
|
||||||
import { useForm } from 'react-hook-form'
|
import { useForm } from 'react-hook-form'
|
||||||
import { NodeTypeSelector } from '../../components/NodeTypeSelector'
|
import { NodeTypeSelector } from '../../components/NodeTypeSelector'
|
||||||
import { DelegationResult, EnumNodeType, TFee } from '../../types'
|
import { EnumNodeType, TFee } from '../../types'
|
||||||
import { yupResolver } from '@hookform/resolvers/yup'
|
import { yupResolver } from '@hookform/resolvers/yup'
|
||||||
import { validationSchema } from './validationSchema'
|
import { validationSchema } from './validationSchema'
|
||||||
import { Alert } from '@material-ui/lab'
|
import { Alert } from '@material-ui/lab'
|
||||||
@@ -93,6 +93,7 @@ export const DelegateForm = ({
|
|||||||
<NodeTypeSelector
|
<NodeTypeSelector
|
||||||
nodeType={watchNodeType}
|
nodeType={watchNodeType}
|
||||||
setNodeType={(nodeType) => setValue('nodeType', nodeType)}
|
setNodeType={(nodeType) => setValue('nodeType', nodeType)}
|
||||||
|
disabled={isSubmitting}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
|
|||||||
Reference in New Issue
Block a user