Skip to content

Commit

Permalink
Add Types to IconButon
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrule007 committed Aug 8, 2021
1 parent 761c612 commit 8212ec3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions components/theme/IconButton.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import React from 'react'
import { Button } from './Button'
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
import { ColorTypes } from './colors'
type Props = {
color: ColorTypes
tooltipTitle: string
placement: any
icon: any
delay: any
tabIndex?: string
className?: string
onClick?: React.MouseEventHandler<HTMLButtonElement>
}

export default function IconButton({
const IconButton: React.FC<Props> = ({
color,
placement,
tooltipTitle,
icon,
delay,
...extras
}) {
}) => {
return tooltipTitle ? (
<OverlayTrigger
placement={placement}
Expand All @@ -30,3 +41,5 @@ export default function IconButton({
</Button>
)
}

export default IconButton

0 comments on commit 8212ec3

Please sign in to comment.