2023-05-23 18:52:27 +10:00
|
|
|
import { PureComponent } from 'react';
|
2023-05-24 01:15:17 +10:00
|
|
|
|
2017-08-14 12:53:31 +10:00
|
|
|
import { Provider } from 'react-redux';
|
2023-05-24 01:15:17 +10:00
|
|
|
|
|
|
|
import { fetchCustomEmojis } from '../actions/custom_emojis';
|
2017-08-14 12:53:31 +10:00
|
|
|
import { hydrateStore } from '../actions/store';
|
|
|
|
import Compose from '../features/standalone/compose';
|
2017-10-28 02:04:44 +11:00
|
|
|
import initialState from '../initial_state';
|
2023-06-02 23:00:27 +10:00
|
|
|
import { IntlProvider } from '../locales';
|
2023-05-24 01:15:17 +10:00
|
|
|
import { store } from '../store';
|
2017-08-14 12:53:31 +10:00
|
|
|
|
|
|
|
|
2017-10-28 02:04:44 +11:00
|
|
|
if (initialState) {
|
2017-08-14 12:53:31 +10:00
|
|
|
store.dispatch(hydrateStore(initialState));
|
|
|
|
}
|
|
|
|
|
2019-02-05 09:14:57 +11:00
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
|
2023-06-02 23:00:27 +10:00
|
|
|
export default class ComposeContainer extends PureComponent {
|
2017-08-14 12:53:31 +10:00
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2023-06-02 23:00:27 +10:00
|
|
|
<IntlProvider>
|
2017-08-14 12:53:31 +10:00
|
|
|
<Provider store={store}>
|
|
|
|
<Compose />
|
|
|
|
</Provider>
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|