Skip to content

Commit

Permalink
Fixing styleguidie screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoviannaaraujo committed Mar 19, 2020
1 parent 7ed7cef commit d36cc0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/components/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@ 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 (
<View>
<Label>{label || name}</Label>
<Spacer size="xs" />
<TextInput
error={error}
placeholder={placeholder}
onChangeText={handleChange(name)}
onBlur={handleBlur(name)}
onChangeText={handleChange && handleChange(name)}
onBlur={handleChange && handleBlur(name)}
value={value}
/>
<Footnote style={baseErrorStyle}>{error}</Footnote>
Expand Down
1 change: 0 additions & 1 deletion src/components/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function TextInput({style, error, ...props}) {
const textStyle = {
color: colors.text
}
console.log(props)
return (
<BaseTextInput
style={[baseStyle, style]}
Expand Down

0 comments on commit d36cc0c

Please sign in to comment.