Skip to content

Commit

Permalink
Moves WindowEvent to services folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhodes committed Aug 20, 2018
1 parent b703e5f commit a348dbb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src-docs/src/views/window_event/window_event.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import React, { Component } from 'react';

import {
EuiWindowEvent,
EuiIcon,
EuiButton,
EuiSpacer,
} from '../../../../src/components';

import {
EuiWindowEvent,
} from '../../../../src/services';

export class WindowEvent extends Component {
constructor(props) {
super(props);
Expand Down
3 changes: 1 addition & 2 deletions src/components/flyout/flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import classnames from 'classnames';
import PropTypes from 'prop-types';
import FocusTrap from 'focus-trap-react';

import { keyCodes } from '../../services';
import { keyCodes, EuiWindowEvent } from '../../services';

import { EuiOverlayMask } from '../overlay_mask';
import { EuiButtonIcon } from '../button';
import { EuiWindowEvent } from '../window_event';

const sizeToClassNameMap = {
s: 'euiFlyout--small',
Expand Down
4 changes: 0 additions & 4 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ export {
EuiToolTip,
} from './tool_tip';

export {
EuiWindowEvent
} from './window_event';

export {
EuiHideFor,
EuiShowFor,
Expand Down
4 changes: 4 additions & 0 deletions src/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ export {
calculatePopoverPosition,
findPopoverPosition,
} from './popover';

export {
EuiWindowEvent
} from './window_event';
File renamed without changes.
File renamed without changes.

0 comments on commit a348dbb

Please sign in to comment.