mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import * as React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { Store } from 'redux';
|
|
|
|
import GeneralSiteSettings from '../../../containers/GeneralSiteSettings';
|
|
import createStoreHelper from '../../../helpers/createStore';
|
|
import IBoardJSON from '../../../interfaces/json/IBoard';
|
|
import { State } from '../../../reducers/rootReducer';
|
|
import { ISiteSettingsGeneralForm } from './GeneralSiteSettingsP';
|
|
|
|
interface Props {
|
|
originForm: ISiteSettingsGeneralForm;
|
|
boards: IBoardJSON[];
|
|
authenticityToken: string;
|
|
}
|
|
|
|
class GeneralSiteSettingsRoot extends React.Component<Props> {
|
|
store: Store<State, any>;
|
|
|
|
constructor(props: Props) {
|
|
super(props);
|
|
|
|
this.store = createStoreHelper();
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Provider store={this.store}>
|
|
<GeneralSiteSettings
|
|
originForm={this.props.originForm}
|
|
boards={this.props.boards}
|
|
authenticityToken={this.props.authenticityToken}
|
|
/>
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default GeneralSiteSettingsRoot; |