File tree Expand file tree Collapse file tree
components/screens/profile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,18 +2,14 @@ import { ControlledField } from '@baca/components'
22import { isWeb } from '@baca/constants'
33import { Box , Text } from '@baca/design-system'
44import { useWeb } from '@baca/hooks'
5- import { ProfileControlledInputProps } from '@baca/types/ProfileInputProps '
5+ import { ProfileControlledInputProps } from '@baca/types'
66import { StyleSheet } from 'react-native'
77
88export const ProfileControlledInput = ( {
99 label,
1010 name,
11- placeholder,
12- control,
13- errors,
1411 isDisabled = false ,
15- onFocus,
16- onSubmitEditing,
12+ ...rest
1713} : ProfileControlledInputProps ) => {
1814 const { shouldApplyMobileStyles } = useWeb ( )
1915
@@ -29,16 +25,12 @@ export const ProfileControlledInput = ({
2925 </ Text . SmBold >
3026 < Box flex = { isWeb ? 2 : 0 } >
3127 < ControlledField . Input
32- control = { control }
33- errors = { errors }
3428 autoCapitalize = "none"
3529 inputMode = { name === 'email' ? 'email' : 'text' }
3630 name = { name }
37- placeholder = { placeholder }
3831 testID = { `${ name } Input` }
3932 isDisabled = { isDisabled }
40- onFocus = { onFocus }
41- onSubmitEditing = { onSubmitEditing }
33+ { ...rest }
4234 />
4335 </ Box >
4436 </ Box >
Original file line number Diff line number Diff line change 1+ export * from './i18next'
2+ export * from './icon'
3+ export * from './ProfileInputProps'
4+ export * from './testForm'
You can’t perform that action at this time.
0 commit comments