Skip to content

Commit

Permalink
fix: interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
absolemDev committed Nov 23, 2023
1 parent 2b0cd55 commit 611572e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/payment-widget/src/interfaces/wrappers.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { FormEvent } from 'react'
import { ReactElement } from 'react'
import { ReactElement } from 'react'

type OnCallback = (event: FormEvent<HTMLInputElement> | string | any) => void
import { HandleBlurField } from './fields.interfaces'

import { HandleChangeField } from './fields.interfaces'

export interface InputWrapperProps {
name: string
children: (
value: string,
onChange: OnCallback,
onBlur: OnCallback,
onChange: HandleChangeField,
onBlur: HandleBlurField,
errorText: string
) => ReactElement<any>
) => ReactElement
}

export interface ButtonWrapperProps {
children: () => ReactElement<any>
children: () => ReactElement
}

0 comments on commit 611572e

Please sign in to comment.