mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 13:51:36 +01:00
31 lines
699 B
JavaScript
31 lines
699 B
JavaScript
import { PureComponent } from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { fetchCustomEmojis } from '../actions/custom_emojis';
|
|
import { hydrateStore } from '../actions/store';
|
|
import Compose from '../features/standalone/compose';
|
|
import initialState from '../initial_state';
|
|
import { IntlProvider } from '../locales';
|
|
import { store } from '../store';
|
|
|
|
|
|
if (initialState) {
|
|
store.dispatch(hydrateStore(initialState));
|
|
}
|
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
export default class ComposeContainer extends PureComponent {
|
|
|
|
render () {
|
|
return (
|
|
<IntlProvider>
|
|
<Provider store={store}>
|
|
<Compose />
|
|
</Provider>
|
|
</IntlProvider>
|
|
);
|
|
}
|
|
|
|
}
|