mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
36 lines
943 B
TypeScript
36 lines
943 B
TypeScript
import * as React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { Store } from 'redux';
|
|
|
|
import AuthenticationSiteSettings from '../../../containers/AuthenticationSiteSettings';
|
|
import createStoreHelper from '../../../helpers/createStore';
|
|
import { State } from '../../../reducers/rootReducer';
|
|
import { IAuthenticationForm } from './AuthenticationIndexPage';
|
|
|
|
interface Props {
|
|
originForm: IAuthenticationForm;
|
|
authenticityToken: string;
|
|
}
|
|
|
|
class AuthenticationSiteSettingsRoot extends React.Component<Props> {
|
|
store: Store<State, any>;
|
|
|
|
constructor(props: Props) {
|
|
super(props);
|
|
|
|
this.store = createStoreHelper();
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Provider store={this.store}>
|
|
<AuthenticationSiteSettings
|
|
originForm={this.props.originForm}
|
|
authenticityToken={this.props.authenticityToken}
|
|
/>
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default AuthenticationSiteSettingsRoot; |