mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
33 lines
758 B
TypeScript
33 lines
758 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import { Provider } from 'react-redux';
|
||
|
|
import { Store } from 'redux';
|
||
|
|
import BoardsSiteSettings from '../../../containers/BoardsSiteSettings';
|
||
|
|
|
||
|
|
import createStoreHelper from '../../../helpers/createStore';
|
||
|
|
import { State } from '../../../reducers/rootReducer';
|
||
|
|
|
||
|
|
interface Props {
|
||
|
|
authenticityToken: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
class BoardsSiteSettingsRoot extends React.Component<Props> {
|
||
|
|
store: Store<State, any>;
|
||
|
|
|
||
|
|
constructor(props: Props) {
|
||
|
|
super(props);
|
||
|
|
|
||
|
|
this.store = createStoreHelper();
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<Provider store={this.store}>
|
||
|
|
<BoardsSiteSettings
|
||
|
|
authenticityToken={this.props.authenticityToken}
|
||
|
|
/>
|
||
|
|
</Provider>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default BoardsSiteSettingsRoot;
|