Skip to content

Commit

Permalink
fix(Overlay): Fix types and overlay example (#5275)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Jul 7, 2020
1 parent 596cee7 commit f14ca04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ export interface OverlayInjectedProps {
style: React.CSSProperties;
'aria-labelledby'?: string;

arrowProps: { ref: any; style: object };
arrowProps: {
ref: React.RefCallback<HTMLElement>;
style: React.CSSProperties;
};

show: boolean;
placement: Placement;
popper: {
state: any;
outOfBoundaries: boolean;
Expand Down
9 changes: 1 addition & 8 deletions www/src/examples/Overlays/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ function Example() {
Click me to see
</Button>
<Overlay target={target.current} show={show} placement="right">
{({
placement,
scheduleUpdate,
arrowProps,
outOfBoundaries,
show: _show,
...props
}) => (
{({ placement, arrowProps, show: _show, popper, ...props }) => (
<div
{...props}
style={{
Expand Down

0 comments on commit f14ca04

Please sign in to comment.