Skip to content

Commit

Permalink
♻️ Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
pomfrida committed Oct 29, 2020
1 parent bb9da29 commit 108d01b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/core-react/src/Popover/PopoverItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const StyledCloseButton = styled(Button)`
}
`

type Props = {
type PopoverItemProps = {
/* Popover placement relative to anchor */
placement?:
| 'topLeft'
Expand All @@ -98,12 +98,12 @@ type Props = {
| 'leftBottom'
/** On Close function */
onClose?: () => void
/** Open activates Popover */
/** Anchor reference */
anchorRef: React.MutableRefObject<HTMLDivElement>
} & HTMLAttributes<HTMLDivElement>

export const PopoverItem = forwardRef<HTMLDivElement, Props>(
function EdsPopoverItem(
export const PopoverItem = forwardRef<HTMLDivElement, PopoverItemProps>(
function PopoverItem(
{
children,
onClose = () => {},
Expand Down

0 comments on commit 108d01b

Please sign in to comment.