diff --git a/src/components/TextField.js b/src/components/TextField.js index 81185cd..badb338 100644 --- a/src/components/TextField.js +++ b/src/components/TextField.js @@ -7,16 +7,17 @@ import Spacer from './Spacer' import Footnote from './Footnote' function TextField({ - field: {name, value}, + field = {}, placeholder, - form: {error, handleChange, handleBlur}, + form ={}, label }) { const {colors} = useTheme() + const {name, value} = field + const {error, handleChange, handleBlur} = form const baseErrorStyle = { color: colors.negative, } - return ( @@ -24,8 +25,8 @@ function TextField({ {error} diff --git a/src/components/TextInput.js b/src/components/TextInput.js index 2d562bf..fc24374 100644 --- a/src/components/TextInput.js +++ b/src/components/TextInput.js @@ -18,7 +18,6 @@ function TextInput({style, error, ...props}) { const textStyle = { color: colors.text } - console.log(props) return (