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