Skip to content

Commit

Permalink
[#285] fix 12 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwebdev committed Nov 16, 2023
1 parent 55d1520 commit 1163391
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/event-utils/use-roving-index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Children, Dispatch, FC, isValidElement, ReactElement, ReactNode, SetStateAction, useEffect, useState } from 'react'
import { Children, Dispatch, FC, isValidElement, ReactNode, SetStateAction, useEffect, useState } from 'react'
import useKeyPress from './use-key-press'

const useRovingIndex = (
Expand Down
3 changes: 2 additions & 1 deletion src/ebay-button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Priority, Size, BodyState, Variant, Split } from './types'
import { EbayIcon } from '../ebay-icon'
import EbayButtonLoading from './button-loading'
import EbayButtonExpand from './button-expand'
import { EbayKeyboardEventHandler } from '../common/event-utils/types'

export type EbayButtonProps = {
fluid?: boolean;
Expand All @@ -27,7 +28,7 @@ export type EbayButtonProps = {
split?: Split;
transparent?: boolean;
onClick?: (e: MouseEvent) => void;
onEscape?: (e: KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
onEscape?: EbayKeyboardEventHandler<HTMLButtonElement & HTMLAnchorElement>;
forwardedRef?: RefObject<HTMLAnchorElement & HTMLButtonElement>;
borderless?: boolean;
fixedHeight?: boolean;
Expand Down
4 changes: 3 additions & 1 deletion src/ebay-checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { ChangeEvent, cloneElement, ComponentProps, FC, FocusEvent, isValidElement, KeyboardEvent, useState } from 'react'
import React, {
ChangeEvent, cloneElement, ComponentProps, FC, FocusEvent, isValidElement, KeyboardEvent, useState
} from 'react'
import classNames from 'classnames'
import { EbayIcon } from '../ebay-icon'
import { EbayLabel, EbayLabelProps } from '../ebay-field'
Expand Down
2 changes: 1 addition & 1 deletion src/ebay-icon-button/icon-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type EbayIconButtonProps = {
badgeAriaLabel?: string;
transparent?: boolean;
forwardedRef?: RefObject<HTMLAnchorElement & HTMLButtonElement>;
onEscape?: EbayKeyboardEventHandler;
onEscape?: EbayKeyboardEventHandler<HTMLButtonElement & HTMLAnchorElement>;
}

type HTMLButtonProps = ComponentProps<'button'>;
Expand Down
4 changes: 3 additions & 1 deletion src/ebay-select/ebay-select.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { ChangeEvent, cloneElement, ComponentProps, FC, useState, useRef, FocusEvent, isValidElement, ReactElement } from 'react'
import React, {
ChangeEvent, cloneElement, ComponentProps, FC, useState, useRef, FocusEvent, isValidElement, ReactElement
} from 'react'
import classNames from 'classnames'
import EbaySelectOption from './ebay-select-option'
import { EbayIcon } from '../ebay-icon'
Expand Down

0 comments on commit 1163391

Please sign in to comment.