@@ -15,7 +15,7 @@ import {
1515} from 'react-native'
1616import { X , Send , Sparkles } from 'lucide-react-native'
1717import { useAppgramTheme , useAppgramContext } from '../../provider'
18- import type { Wish , ContactForm , ContactFormField } from '../../types'
18+ import type { Wish , Form , FormField } from '../../types'
1919
2020const { height : SCREEN_HEIGHT } = Dimensions . get ( 'window' )
2121
@@ -136,8 +136,8 @@ export function SubmitWishSheet({
136136 const [ error , setError ] = useState < string | null > ( null )
137137
138138 // Auto-detect custom form from project customization
139- const [ customForm , setCustomForm ] = useState < ContactForm | null > ( null )
140- const [ customFormFields , setCustomFormFields ] = useState < ContactFormField [ ] > ( [ ] )
139+ const [ customForm , setCustomForm ] = useState < Form | null > ( null )
140+ const [ customFormFields , setCustomFormFields ] = useState < FormField [ ] > ( [ ] )
141141 const [ customFieldValues , setCustomFieldValues ] = useState < Record < string , string | boolean > > ( { } )
142142 const [ isLoadingCustomization , setIsLoadingCustomization ] = useState ( false )
143143
@@ -154,7 +154,7 @@ export function SubmitWishSheet({
154154 if ( response . success && response . data ?. customization_data ) {
155155 const customizationData = response . data . customization_data as {
156156 content ?: { feedback ?: { customFormId ?: string } }
157- contactForms ?: Record < string , ContactForm & { integration ?: { type : string } } >
157+ contactForms ?: Record < string , Form & { integration ?: { type : string } } >
158158 }
159159
160160 const contactForms = customizationData . contactForms || { }
@@ -164,7 +164,7 @@ export function SubmitWishSheet({
164164 if ( explicitFormId && contactForms [ explicitFormId ] ) {
165165 const form = contactForms [ explicitFormId ]
166166 if ( form . enabled && form . integration ?. type === 'wish' ) {
167- setCustomForm ( form as ContactForm )
167+ setCustomForm ( form as Form )
168168 // Filter out built-in fields
169169 const extraFields = form . fields . filter (
170170 ( f ) => ! [ 'title' , 'description' , 'email' , 'name' , 'message' ] . includes ( f . id . toLowerCase ( ) )
@@ -184,7 +184,7 @@ export function SubmitWishSheet({
184184
185185 if ( wishFormEntry ) {
186186 const [ , form ] = wishFormEntry
187- setCustomForm ( form as ContactForm )
187+ setCustomForm ( form as Form )
188188 // Filter out built-in fields
189189 const extraFields = form . fields . filter (
190190 ( f ) => ! [ 'title' , 'description' , 'email' , 'name' , 'message' ] . includes ( f . id . toLowerCase ( ) )
@@ -553,7 +553,7 @@ export function SubmitWishSheet({
553553// ============================================================================
554554
555555interface CustomFieldInputProps {
556- field : ContactFormField
556+ field : FormField
557557 value : string | boolean | undefined
558558 onChange : ( value : string | boolean ) => void
559559 colors : {
0 commit comments