Fix circular dependencies
parent
1f5c8dd885
commit
0ebd5c4a5e
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
|
||||
import {frequently} from '../utils'
|
||||
import frequently from '../utils/frequently'
|
||||
import {Emoji} from '.'
|
||||
|
||||
const LABELS = {
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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() {
|
||||
|
|
12
src/index.js
12
src/index.js
|
@ -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 }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {store} from '.'
|
||||
import store from './store'
|
||||
|
||||
let frequently = store.get('frequently') || {}
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue