Export NimbleEmojiIndex
parent
a8b81f1858
commit
446fdf9544
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import NimbleEmojiIndex from '../../utils/emoji-index'
|
||||
import NimbleEmojiIndex from '../../utils/emoji-index/nimble-emoji-index'
|
||||
import { SearchPropTypes, SearchDefaultProps } from '../../utils/shared-props'
|
||||
|
||||
export default class NimbleSearch extends React.PureComponent {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import emojiIndex from './utils/parent-emoji-index'
|
||||
import emojiIndex from './utils/emoji-index/emoji-index'
|
||||
import store from './utils/store'
|
||||
import frequently from './utils/frequently'
|
||||
|
||||
export { Picker, Emoji, Category } from './components'
|
||||
export { NimbleEmojiIndex } from './utils/emoji-index/nimble-emoji-index'
|
||||
export { emojiIndex, store, frequently }
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import data from '../data'
|
||||
import NimbleEmojiIndex from './emoji-index'
|
||||
import data from '../../data'
|
||||
import NimbleEmojiIndex from './nimble-emoji-index'
|
||||
|
||||
const emojiIndex = new NimbleEmojiIndex(data)
|
||||
const emojis = emojiIndex.emojis
|
||||
const emoticons = emojiIndex.emoticons
|
||||
const { emojis, emoticons } = emojiIndex
|
||||
|
||||
function search() {
|
||||
return emojiIndex.search(...arguments)
|
|
@ -1,4 +1,4 @@
|
|||
import { getData, getSanitizedData, intersect } from '.'
|
||||
import { getData, getSanitizedData, intersect } from '..'
|
||||
|
||||
export default class NimbleEmojiIndex {
|
||||
constructor(data) {
|
Loading…
Reference in New Issue