mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 20:58:07 +01:00
9e133e2527
Port 44cd88adc4
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
42 lines
1 KiB
JavaScript
42 lines
1 KiB
JavaScript
import PropTypes from 'prop-types';
|
|
import { PureComponent } from 'react';
|
|
|
|
import { IntlProvider } from 'react-intl';
|
|
|
|
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 { store } from 'flavours/glitch/store';
|
|
|
|
import { getLocale, onProviderError } from 'mastodon/locales';
|
|
|
|
const { messages } = getLocale();
|
|
|
|
if (initialState) {
|
|
store.dispatch(hydrateStore(initialState));
|
|
}
|
|
|
|
store.dispatch(fetchCustomEmojis());
|
|
|
|
export default class TimelineContainer extends PureComponent {
|
|
|
|
static propTypes = {
|
|
locale: PropTypes.string.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { locale } = this.props;
|
|
|
|
return (
|
|
<IntlProvider locale={locale} messages={messages} onError={onProviderError}>
|
|
<Provider store={store}>
|
|
<Compose />
|
|
</Provider>
|
|
</IntlProvider>
|
|
);
|
|
}
|
|
|
|
}
|