mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
input fixes: filter out non-HTML props
This commit is contained in:
parent
fbef95a644
commit
66f9dace6f
@ -6,9 +6,9 @@ import FilesInput from '../../molecules/FormFields/FilesInput'
|
|||||||
import Terms from '../../molecules/FormFields/Terms'
|
import Terms from '../../molecules/FormFields/Terms'
|
||||||
import Price from '../../molecules/FormFields/Price'
|
import Price from '../../molecules/FormFields/Price'
|
||||||
|
|
||||||
const DefaultInput = (props: InputProps) => (
|
const DefaultInput = ({ small, ...props }: InputProps) => (
|
||||||
<input
|
<input
|
||||||
className={`${styles.input} ${props.small ? styles.small : null}`}
|
className={`${styles.input} ${small ? styles.small : null}`}
|
||||||
id={props.name}
|
id={props.name}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
@ -22,6 +22,10 @@ export default function InputElement({
|
|||||||
postfix,
|
postfix,
|
||||||
small,
|
small,
|
||||||
field,
|
field,
|
||||||
|
label,
|
||||||
|
help,
|
||||||
|
form,
|
||||||
|
additionalComponent,
|
||||||
...props
|
...props
|
||||||
}: InputProps): ReactElement {
|
}: InputProps): ReactElement {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user