Skip to content

Commit

Permalink
chore(useEventEmitter): move import from "helpers" to "component-helper"
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Sep 22, 2022
1 parent 4352495 commit 14892f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/dnb-eufemia/src/shared/component-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { usePropsWithContext } from './hooks/usePropsWithContext'
export { InteractionInvalidation } from './helpers/InteractionInvalidation'
export { extendPropsWithContext } from './helpers/extendPropsWithContext'
export { registerElement } from './custom-element'
export { useEventEmitter } from './helpers/useEventEmitter'

export { getPreviousSibling, warn }

Expand Down
4 changes: 2 additions & 2 deletions packages/dnb-eufemia/src/shared/helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Global helpers
*
* NB: Do not import other deps in this file.
* Just to have things clean and one directional.
*/

export const PLATFORM_MAC = 'Mac|iPad|iPhone|iPod'
Expand All @@ -18,8 +20,6 @@ export let IS_MAC = false
export let IS_ANDROID = false
export let IS_LINUX = false

export * from './helpers/useEventEmitter'

export const isMac = () =>
(IS_MAC =
typeof navigator !== 'undefined' &&
Expand Down

0 comments on commit 14892f8

Please sign in to comment.