Add OAuth Login facebook,google,github

This commit is contained in:
Qolzam
2017-11-18 19:04:31 +07:00
parent f64b7bb24d
commit 92379b615c
23 changed files with 513 additions and 264 deletions

View File

@@ -27,9 +27,13 @@ export class EmailVerificationComponent extends Component<IEmailVerificationComp
message: {
fontWeight: 100
},
sendButton: {
buttons: {
marginTop: 60
},
homeButton: {
marginRight: 10
}
}
/**
@@ -89,9 +93,12 @@ export class EmailVerificationComponent extends Component<IEmailVerificationComp
<p style={this.styles.message as any}>
An verificiation email has been already sent to you. Please check your inbox. If you couldn't see the emai, please resend email verification.
</p>
<div style={this.styles.sendButton}>
<div style={this.styles.buttons}>
<RaisedButton style={this.styles.homeButton} label='Home' primary={true} onClick={() => this.props.homePage()} />
<RaisedButton label='Send Email Verification' primary={true} onClick={() => this.props.sendEmailVerification()} />
</div>
<div>
</div>
</div>
</Paper>
@@ -109,8 +116,8 @@ export class EmailVerificationComponent extends Component<IEmailVerificationComp
*/
const mapDispatchToProps = (dispatch: Function, ownProps: IEmailVerificationComponentProps) => {
return {
loginPage: () => {
dispatch(push('/login'))
homePage: () => {
dispatch(push('/'))
},
sendEmailVerification: () => dispatch(authorizeActions.dbSendEmailVerfication())
}