Files
astuto/app/javascript/components/SiteSettings/PostStatuses/index.tsx

33 lines
788 B
TypeScript
Raw Normal View History

2022-05-01 18:00:38 +02:00
import * as React from 'react';
import { Provider } from 'react-redux';
import { Store } from 'redux';
import PostStatusesSiteSettings from '../../../containers/PostStatusesSiteSettings';
import createStoreHelper from '../../../helpers/createStore';
import { State } from '../../../reducers/rootReducer';
interface Props {
authenticityToken: string;
}
class PostStatusesSiteSettingsRoot extends React.Component<Props> {
store: Store<State, any>;
constructor(props: Props) {
super(props);
this.store = createStoreHelper();
}
render() {
return (
<Provider store={this.store}>
<PostStatusesSiteSettings
authenticityToken={this.props.authenticityToken}
/>
</Provider>
);
}
}
export default PostStatusesSiteSettingsRoot;