fix: register
This commit is contained in:
parent
7b4dfa2a66
commit
38eca2d360
|
@ -219,7 +219,7 @@ class RegisterPage extends React.Component {
|
|||
return this.http.upload(file)
|
||||
.then(res => {
|
||||
this.setState({
|
||||
[`upload_${key}`]: res.path
|
||||
[`upload_${key}`]: appConfig.apiUrl + res.path.slice(1,res.path.length)
|
||||
});
|
||||
return res;
|
||||
})
|
||||
|
@ -278,7 +278,9 @@ class RegisterPage extends React.Component {
|
|||
<Grid item cols={12} className={classes.logoContainer}>
|
||||
<img src={require('../../../../assets/images/logo_new.png')} className={classes.logo} />
|
||||
</Grid>
|
||||
<Grid item xs={12} sm={12} md={10} lg={10} className={classes.registerContainer}>
|
||||
<Grid item xs={12} sm={12} md={10} lg={10} className={classes.registerContainer} style={{
|
||||
alignSelf: 'center'
|
||||
}}>
|
||||
<Grid container spacing={24} className={classes.registerPaper}>
|
||||
<Hidden smDown>
|
||||
<Grid item xs={5}>
|
||||
|
@ -522,10 +524,9 @@ class RegisterPage extends React.Component {
|
|||
|
||||
<div style={{ padding: 5, marginTop: 20 }}>
|
||||
<Button
|
||||
disabled={!this.state.query.referal}
|
||||
fullWidth
|
||||
variant="contained" style={{ backgroundColor: '#ffeb3b' }} onClick={this.register}>
|
||||
{this.state.isLoading ? <CircularProgress className={classes.progress} /> : (this.state.query.referal ? "Sign Up" : "Please add Referal to continue")}
|
||||
{this.state.isLoading ? <CircularProgress className={classes.progress} /> : "Sign Up"}
|
||||
</Button>
|
||||
</div>
|
||||
</Paper>
|
||||
|
|
|
@ -10,7 +10,8 @@ export const styles = theme => ({
|
|||
},
|
||||
gridContainer : {
|
||||
flex :1,
|
||||
justifyContent:'center'
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'column'
|
||||
},
|
||||
registerContainer: {
|
||||
marginTop : 50
|
||||
|
|
Loading…
Reference in New Issue
Block a user