Skip to content

Commit

Permalink
chore(transferoption): add missing onClick/onDoubleClick prop TS types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Oct 5, 2023
1 parent 714f1e6 commit b36b5af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/transfer/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,20 @@ export interface TransferProps {

export const Transfer: React.FC<TransferProps>

type TransferOptionOnClickProp = (payload: { value: string }) => void

export interface TransferOptionRenderProps extends TransferOption {
highlighted: boolean
selected: boolean
onClick: (payload: { value: string }) => void
onDoubleClick: (payload: { value: string }) => void
onClick: TransferOptionOnClickProp
onDoubleClick: TransferOptionOnClickProp
}

export interface TransferOptionProps {
label: React.ReactNode
value: string
onClick: TransferOptionOnClickProp
onDoubleClick: TransferOptionOnClickProp
className?: string
dataTest?: string
disabled?: boolean
Expand Down

0 comments on commit b36b5af

Please sign in to comment.