Skip to content

Commit

Permalink
Used Focus and Mouse handlers from react
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Jun 19, 2020
1 parent 0c545d1 commit b34705d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions react/components/ButtonPlain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import React, {
ReactNode,
FC,
useRef,
MouseEventHandler,
FocusEventHandler,
} from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
Expand All @@ -14,9 +16,6 @@ import Spinner from '../Spinner'
import { withForwardedRef } from '../../modules/withForwardedRef'
import mergeRef from '../../utilities/mergeRef'

type MouseEventHandler = (e: React.MouseEvent<HTMLElement>) => void
type FocusEventHandler = (e: React.FocusEvent<HTMLElement>) => void

interface Props {
children: ReactNode
size?: 'small' | 'regular' | 'large'
Expand Down

0 comments on commit b34705d

Please sign in to comment.