Get rid of components index

Import all components directly, similar to #245
nolan/hinaloe-test
Etienne Lemay 2018-11-13 09:41:57 -05:00
parent 9196a87769
commit 21b3e92bb2
No known key found for this signature in database
GPG Key ID: EE7CF89146BB28E9
6 changed files with 15 additions and 31 deletions

View File

@ -1,14 +0,0 @@
export { default as Anchors } from './anchors'
export { default as Category } from './category'
export { default as Preview } from './preview'
export { default as NotFound } from './not-found'
export { default as Search } from './search'
export { default as Skins } from './skins'
export { default as SkinsEmoji } from './skins-emoji'
export { default as SkinsDot } from './skins-dot'
export { default as Emoji } from './emoji/emoji'
export { default as NimbleEmoji } from './emoji/nimble-emoji'
export { default as Picker } from './picker/picker'
export { default as NimblePicker } from './picker/nimble-picker'

View File

@ -1,6 +1,7 @@
import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { NimbleEmoji } from '.'
import NimbleEmoji from './emoji/nimble-emoji'
export default class NotFound extends React.PureComponent { export default class NotFound extends React.PureComponent {
render() { render() {

View File

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { Skins } from '.' import Skins from './skins'
export default class SkinsDot extends Skins { export default class SkinsDot extends Skins {
constructor(props) { constructor(props) {

View File

@ -1,7 +1,8 @@
import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { NimbleEmoji, Skins } from '.' import NimbleEmoji from './emoji/nimble-emoji'
import Skins from './skins'
export default class SkinsEmoji extends Skins { export default class SkinsEmoji extends Skins {
constructor(props) { constructor(props) {

View File

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { NimbleEmoji } from '.' import NimbleEmoji from './emoji/nimble-emoji'
export default class Skins extends React.PureComponent { export default class Skins extends React.PureComponent {
constructor(props) { constructor(props) {

View File

@ -1,14 +1,10 @@
import emojiIndex from './utils/emoji-index/emoji-index' export { default as emojiIndex } from './utils/emoji-index/emoji-index'
import store from './utils/store'
import frequently from './utils/frequently'
export {
Picker,
NimblePicker,
Emoji,
NimbleEmoji,
Category,
} from './components'
export { default as NimbleEmojiIndex } from './utils/emoji-index/nimble-emoji-index' export { default as NimbleEmojiIndex } from './utils/emoji-index/nimble-emoji-index'
export { emojiIndex, store, frequently } export { default as store } from './utils/store'
export { default as frequently } from './utils/frequently'
export { default as Picker } from './components/picker/picker'
export { default as NimblePicker } from './components/picker/nimble-picker'
export { default as Emoji } from './components/emoji/emoji'
export { default as NimbleEmoji } from './components/emoji/nimble-emoji'
export { default as Category } from './components/category'