Files
astuto/app/javascript/components/SiteSettings/General/index.tsx
2022-07-22 16:50:36 +02:00

36 lines
915 B
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 { State } from '../../../reducers/rootReducer';
import { ISiteSettingsGeneralForm } from './GeneralSiteSettingsP';
interface Props {
originForm: ISiteSettingsGeneralForm;
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}
authenticityToken={this.props.authenticityToken}
/>
</Provider>
);
}
}
export default GeneralSiteSettingsRoot;