mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 02:49:03 +01:00
6936e5aa69
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
27 lines
726 B
JavaScript
27 lines
726 B
JavaScript
import { Provider } from 'react-redux';
|
|
|
|
import { fetchCustomEmojis } from 'mastodon/actions/custom_emojis';
|
|
import { hydrateStore } from 'mastodon/actions/store';
|
|
import { Router } from 'mastodon/components/router';
|
|
import Compose from 'mastodon/features/standalone/compose';
|
|
import initialState from 'mastodon/initial_state';
|
|
import { IntlProvider } from 'mastodon/locales';
|
|
import { store } from 'mastodon/store';
|
|
|
|
if (initialState) {
|
|
store.dispatch(hydrateStore(initialState));
|
|
}
|
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
const ComposeContainer = () => (
|
|
<IntlProvider>
|
|
<Provider store={store}>
|
|
<Router>
|
|
<Compose />
|
|
</Router>
|
|
</Provider>
|
|
</IntlProvider>
|
|
);
|
|
|
|
export default ComposeContainer;
|