mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 13:17:13 +00:00
9e66c07be7
Port b0780cfeed
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
31 lines
776 B
JavaScript
31 lines
776 B
JavaScript
import { PureComponent } from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { fetchCustomEmojis } from 'flavours/glitch/actions/custom_emojis';
|
|
import { hydrateStore } from 'flavours/glitch/actions/store';
|
|
import Compose from 'flavours/glitch/features/standalone/compose';
|
|
import initialState from 'flavours/glitch/initial_state';
|
|
import { IntlProvider } from 'flavours/glitch/locales';
|
|
import { store } from 'flavours/glitch/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>
|
|
);
|
|
}
|
|
|
|
}
|