Skip to content

Commit

Permalink
Remove hardcoded popper placement and get them from popper library (H…
Browse files Browse the repository at this point in the history
  • Loading branch information
S-t-e-p-s authored and martijnrusschen committed Nov 27, 2018
1 parent c68f210 commit 4a9c76d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/popper_component.jsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
import classnames from "classnames";
import React from "react";
import PropTypes from "prop-types";
import { Manager, Reference, Popper } from "react-popper";
import { Manager, Reference, Popper, placements } from "react-popper";

export const popperPlacementPositions = [
"bottom",
"bottom-end",
"bottom-start",
"left",
"left-end",
"left-start",
"right",
"right-end",
"right-start",
"top",
"top-end",
"top-start"
];
export const popperPlacementPositions = placements;

export default class PopperComponent extends React.Component {
static propTypes = {
Expand Down

0 comments on commit 4a9c76d

Please sign in to comment.