import * as React from 'react'; import { Provider } from 'react-redux'; import { Store } from 'redux'; import createStoreHelper from '../../helpers/createStore'; import TenantSignUp from '../../containers/TenantSignUp'; import { State } from '../../reducers/rootReducer'; import { IOAuthJSON, oAuthJSON2JS } from '../../interfaces/IOAuth'; interface Props { oAuths: Array; oAuthLoginCompleted: boolean; oauthUserEmail?: string; oauthUserName?: string; baseUrl: string; astutoLogoImage: string; pendingTenantImage: string; trialPeriodDays: number; authenticityToken: string; } class TenantSignUpRoot extends React.Component { store: Store; constructor(props: Props) { super(props); this.store = createStoreHelper(); } render() { const { oAuths, oAuthLoginCompleted, oauthUserEmail, oauthUserName, astutoLogoImage, pendingTenantImage, baseUrl, trialPeriodDays, authenticityToken, } = this.props; return ( oAuthJSON2JS(oAuth))} astutoLogoImage={astutoLogoImage} pendingTenantImage={pendingTenantImage} baseUrl={baseUrl} trialPeriodDays={trialPeriodDays} authenticityToken={authenticityToken} /> ); } } export default TenantSignUpRoot;