Skip to content

Commit

Permalink
fixed type
Browse files Browse the repository at this point in the history
  • Loading branch information
trisianto committed Oct 27, 2019
2 parents a9282c6 + a95a938 commit 276629f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/TooltipPositioner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ type Props = {
tooltipContentArgs?: object
}

class TooltipPositioner extends React.Component<Props> {
type State = {
offset: object,
tooltipContainerInitialDimensions: object
}

class TooltipPositioner extends React.Component<Props, State> {
private containerRef = React.createRef<HTMLDivElement>()

state = {
offset: null,
tooltipDimensions: null
tooltipContainerInitialDimensions: null
}

// simple heuristics to check if the tooltip container exceeds the viewport
Expand Down

0 comments on commit 276629f

Please sign in to comment.