mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 19:40:23 -05:00
9c10aaa4d5
Port 6936e5aa69
to glitch-soc
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
28 lines
775 B
JavaScript
28 lines
775 B
JavaScript
import { Provider } from 'react-redux';
|
|
|
|
import { fetchCustomEmojis } from 'flavours/glitch/actions/custom_emojis';
|
|
import { hydrateStore } from 'flavours/glitch/actions/store';
|
|
import { Router } from 'flavours/glitch/components/router';
|
|
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());
|
|
|
|
const ComposeContainer = () => (
|
|
<IntlProvider>
|
|
<Provider store={store}>
|
|
<Router>
|
|
<Compose />
|
|
</Router>
|
|
</Provider>
|
|
</IntlProvider>
|
|
);
|
|
|
|
export default ComposeContainer;
|