fix: rework wallet screen
This commit is contained in:
parent
1f7ae74b42
commit
1f6d272aa0
103 changed files with 2094 additions and 3892 deletions
|
|
@ -1,42 +1,24 @@
|
|||
import React, { memo } from 'react'
|
||||
import { makeStyles } from '@material-ui/core'
|
||||
|
||||
import { Label1 } from 'src/components/typography'
|
||||
|
||||
import { RadioGroup } from '../base'
|
||||
|
||||
const styles = {
|
||||
label: {
|
||||
height: 16,
|
||||
lineHeight: '16px',
|
||||
margin: [[0, 0, 4, 0]],
|
||||
paddingLeft: 3
|
||||
}
|
||||
}
|
||||
|
||||
const useStyles = makeStyles(styles)
|
||||
|
||||
const RadioGroupFormik = memo(({ ...props }) => {
|
||||
const classes = useStyles()
|
||||
|
||||
const RadioGroupFormik = memo(({ label, ...props }) => {
|
||||
const { name, onChange, value } = props.field
|
||||
|
||||
return (
|
||||
<>
|
||||
{props.label && <Label1 className={classes.label}>{props.label}</Label1>}
|
||||
<RadioGroup
|
||||
name={name}
|
||||
value={value}
|
||||
options={props.options}
|
||||
ariaLabel={name}
|
||||
onChange={e => {
|
||||
onChange(e)
|
||||
props.resetError()
|
||||
}}
|
||||
className={props.className}
|
||||
{...props}
|
||||
/>
|
||||
</>
|
||||
<RadioGroup
|
||||
name={name}
|
||||
label={label}
|
||||
value={value}
|
||||
options={props.options}
|
||||
ariaLabel={name}
|
||||
onChange={e => {
|
||||
onChange(e)
|
||||
props.resetError()
|
||||
}}
|
||||
className={props.className}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue