![mgabdev](/assets/img/avatar_default.png)
reorganization, linting, updating file imports, consolidation warning: there will be errors in this commit todo: update webpack, add missing styles, scss files, consolidate the rest of components within features/*
40 lines
982 B
JavaScript
40 lines
982 B
JavaScript
import { Provider } from 'react-redux';
|
|
import { IntlProvider, addLocaleData } from 'react-intl';
|
|
import configureStore from '../store/configureStore';
|
|
import { hydrateStore } from '../actions/store';
|
|
import { getLocale } from '../locales';
|
|
import Compose from '../features/standalone/compose';
|
|
import initialState from '../initial_state';
|
|
import { fetchCustomEmojis } from '../actions/custom_emojis';
|
|
|
|
const { localeData, messages } = getLocale();
|
|
addLocaleData(localeData);
|
|
|
|
const store = configureStore();
|
|
|
|
if (initialState) {
|
|
store.dispatch(hydrateStore(initialState));
|
|
}
|
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
export default class TimelineContainer extends PureComponent {
|
|
|
|
static propTypes = {
|
|
locale: PropTypes.string.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { locale } = this.props;
|
|
|
|
return (
|
|
<IntlProvider locale={locale} messages={messages}>
|
|
<Provider store={store}>
|
|
<Compose />
|
|
</Provider>
|
|
</IntlProvider>
|
|
);
|
|
}
|
|
|
|
}
|