fix: sensible deposit and swap (#448)

* fix: indicate and lower minimum xdai to deposit

* fix: take user input on swap page

* fix: change minimum_dai to minimum_bzz

* fix: token naming convention

* refactor: use constants

* fix: check for positive decimal
This commit is contained in:
Cafe137
2022-06-28 15:24:33 +02:00
committed by GitHub
parent 56f207d6a6
commit 26ce0efc0b
3 changed files with 50 additions and 10 deletions
+4
View File
@@ -10,6 +10,7 @@ interface Props {
formik?: boolean
optional?: boolean
defaultValue?: string
placeholder?: string
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void
}
@@ -41,6 +42,7 @@ export function SwarmTextInput({
formik,
onChange,
defaultValue,
placeholder,
}: Props): ReactElement {
const classes = useStyles()
@@ -57,6 +59,7 @@ export function SwarmTextInput({
className={classes.field}
defaultValue={defaultValue || ''}
InputProps={{ disableUnderline: true }}
placeholder={placeholder}
/>
)
}
@@ -72,6 +75,7 @@ export function SwarmTextInput({
defaultValue={defaultValue || ''}
onChange={onChange}
InputProps={{ disableUnderline: true }}
placeholder={placeholder}
/>
)
}