Skip to content

Commit

Permalink
fix: improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmidrahman-dsi committed Jan 9, 2025
1 parent d15f9ac commit f8996f4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/form/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,11 @@ export interface IHttpFormField extends IFormFieldBase {
method?: string
headers: Record<string, string>
body?: Record<string, any>
params?: Record<string, any>
}
}

export interface IRedirectFormField extends IFormFieldBase {
export interface ILinkButtonFormField extends IFormFieldBase {
type: typeof LINK_BUTTON
icon?: {
desktop: string
Expand All @@ -525,7 +526,7 @@ export interface QRReaderType {
type: 'QR'
}

type ReaderType = QRReaderType | IRedirectFormField
type ReaderType = QRReaderType | ILinkButtonFormField
export interface IIDReaderFormField extends IFormFieldBase {
type: typeof ID_READER
dividerLabel: MessageDescriptor
Expand All @@ -534,7 +535,7 @@ export interface IIDReaderFormField extends IFormFieldBase {
}

export type BannerType = 'pending' | 'verified' | 'failed'
export interface IBannerFormField extends IFormFieldBase {
export interface IIDVerificationBannerFormField extends IFormFieldBase {
type: typeof ID_VERIFICATION_BANNER
bannerType: BannerType
idFieldName: string
Expand Down Expand Up @@ -574,9 +575,9 @@ export type IFormField =
| ISignatureFormField
| IHiddenFormField
| IIDReaderFormField
| IRedirectFormField
| ILinkButtonFormField
| IHttpFormField
| IBannerFormField
| IIDVerificationBannerFormField

export interface SelectComponentOption {
value: string
Expand Down

0 comments on commit f8996f4

Please sign in to comment.