Fix circular dependencies

release
Etienne Lemay 2016-07-20 14:45:28 -04:00
parent 1f5c8dd885
commit 0ebd5c4a5e
6 changed files with 10 additions and 16 deletions

View File

@ -1,6 +1,6 @@
import React from 'react'
import {frequently} from '../utils'
import frequently from '../utils/frequently'
import {Emoji} from '.'
const LABELS = {

View File

@ -3,7 +3,9 @@ import '../vendor/raf-polyfill'
import React from 'react'
import data from '../../data'
import {store, frequently} from '../utils'
import store from '../utils/store'
import frequently from '../utils/frequently'
import {Anchors, Category, Preview, Search} from '.'
const RECENT_CATEGORY = { name: 'Recent', emojis: null }

View File

@ -1,5 +1,5 @@
import React from 'react'
import {emojiIndex} from '../utils'
import emojiIndex from '../utils/emoji-index'
export default class Search extends React.Component {
handleChange() {

View File

@ -1,9 +1,5 @@
export {
Picker,
Emoji,
} from './components'
import emojiIndex from './utils/emoji-index'
import store from './utils/store'
export {
emojiIndex,
store,
} from './utils'
export { Picker, Emoji } from './components'
export { emojiIndex, store }

View File

@ -1,4 +1,4 @@
import {store} from '.'
import store from './store'
let frequently = store.get('frequently') || {}

View File

@ -67,8 +67,4 @@ function getData(emoji, skin, sheetURL) {
return emojiData
}
export {default as store} from './store'
export {default as emojiIndex} from './emoji-index'
export {default as frequently} from './frequently'
export { getData, getSanitizedData }