Move Portal to @grafana/ui

This commit is contained in:
Dominik Prokop 2019-01-09 10:55:38 +01:00
parent 076defdc0b
commit fae8ff5750
3 changed files with 5 additions and 4 deletions

View File

@ -6,11 +6,11 @@ interface Props {
root?: HTMLElement;
}
export default class BodyPortal extends PureComponent<Props> {
export class Portal extends PureComponent<Props> {
node: HTMLElement = document.createElement('div');
portalRoot: HTMLElement;
constructor(props) {
constructor(props: Props) {
super(props);
const {
className,

View File

@ -1,7 +1,7 @@
import React, { PureComponent } from 'react';
import React, { PureComponent } from 'react';
import * as PopperJS from 'popper.js';
import { Manager, Popper as ReactPopper } from 'react-popper';
import Portal from 'app/core/components/Portal/Portal';
import { Portal } from '@grafana/ui';
import Transition from 'react-transition-group/Transition';
export enum Themes {

View File

@ -1,2 +1,3 @@
export { DeleteButton } from './DeleteButton/DeleteButton';
export { Tooltip } from './Tooltip/Tooltip';
export { Portal } from './Portal/Portal';