Skip to content

Commit

Permalink
export throttle from index
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyfritz committed Mar 1, 2020
1 parent c79477c commit cc9ee52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/color_picker/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MouseEvent as ReactMouseEvent, TouchEvent, useEffect } from 'react';
import { throttle } from '../../services/throttle'
import { throttle } from '../../services'

export const getEventPosition = (
location: { x: number; y: number },
Expand Down
2 changes: 1 addition & 1 deletion src/components/nav_drawer/nav_drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EuiNavDrawerGroup, ATTR_SELECTOR, EuiNavDrawerGroupProps } from './nav_
import { EuiOutsideClickDetector } from '../outside_click_detector';
import { EuiI18n } from '../i18n';
import { EuiFlexItem, EuiFlexGroup } from '../flex';
import { throttle } from '../../services/throttle';
import { throttle } from '../../services';
import { CommonProps } from '../common';

const MENU_ELEMENT_ID = 'navDrawerMenu';
Expand Down
4 changes: 4 additions & 0 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export {
Comparators,
} from './sort';

export {
throttle
} from './throttle';

export { calculatePopoverPosition, findPopoverPosition } from './popover';

export {
Expand Down

0 comments on commit cc9ee52

Please sign in to comment.