2023-05-28 08:18:23 -04:00
|
|
|
import { PureComponent } from 'react';
|
2023-05-28 10:38:10 -04:00
|
|
|
|
2017-08-13 22:53:31 -04:00
|
|
|
import { Provider } from 'react-redux';
|
2023-05-28 10:38:10 -04:00
|
|
|
|
2023-11-15 06:01:51 -05:00
|
|
|
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';
|
|
|
|
|
2023-05-28 10:38:10 -04:00
|
|
|
|
2017-10-27 11:04:44 -04:00
|
|
|
if (initialState) {
|
2017-08-13 22:53:31 -04:00
|
|
|
store.dispatch(hydrateStore(initialState));
|
|
|
|
}
|
|
|
|
|
2019-02-10 15:54:43 -05:00
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
|
2023-06-02 09:00:27 -04:00
|
|
|
export default class ComposeContainer extends PureComponent {
|
2017-08-13 22:53:31 -04:00
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2023-06-02 09:00:27 -04:00
|
|
|
<IntlProvider>
|
2017-08-13 22:53:31 -04:00
|
|
|
<Provider store={store}>
|
|
|
|
<Compose />
|
|
|
|
</Provider>
|
|
|
|
</IntlProvider>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|