feat: created a number input component (base and formik)
fix: replace numeric TextInput fields on the Cashout, Commissions, Cashboxes, Notifications, Operator Info and Terms & Conditions pages fix: change the way the number format is defined on the component fix: parameterize the number of decimal places in the in the number input and set it's value for the current number inputs on the admin
This commit is contained in:
parent
72a1b798f8
commit
27da8cc025
13 changed files with 195 additions and 46 deletions
|
|
@ -10,7 +10,7 @@ import * as Yup from 'yup'
|
|||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import { Button } from 'src/components/buttons'
|
||||
import { Switch } from 'src/components/inputs'
|
||||
import TextInputFormik from 'src/components/inputs/formik/TextInput'
|
||||
import { TextInput } from 'src/components/inputs/formik'
|
||||
import { Info2, Label2 } from 'src/components/typography'
|
||||
import { fromNamespace, toNamespace, namespaces } from 'src/utils/config'
|
||||
|
||||
|
|
@ -149,7 +149,7 @@ const TermsConditions = () => {
|
|||
<Field
|
||||
id={f.name}
|
||||
name={f.name}
|
||||
component={TextInputFormik}
|
||||
component={TextInput}
|
||||
width={f.width}
|
||||
placeholder={f.placeholder}
|
||||
type="text"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue