Put button inside div and rearranged some code.
This commit is contained in:
		
							parent
							
								
									19e24a2747
								
							
						
					
					
						commit
						760c5b77de
					
				@ -272,8 +272,6 @@ class QuizGame extends React.Component {
 | 
				
			|||||||
        const { classes } = this.props;
 | 
					        const { classes } = this.props;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
            <Fragment>
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
            // Tabs
 | 
					            // Tabs
 | 
				
			||||||
            <div className={classes.root}>
 | 
					            <div className={classes.root}>
 | 
				
			||||||
                <Typography variant="headline" align="center">
 | 
					                <Typography variant="headline" align="center">
 | 
				
			||||||
@ -281,15 +279,13 @@ class QuizGame extends React.Component {
 | 
				
			|||||||
                        <Quiz quiz={this.state.difficulty} key={this.state.key} />
 | 
					                        <Quiz quiz={this.state.difficulty} key={this.state.key} />
 | 
				
			||||||
                    </Grid>
 | 
					                    </Grid>
 | 
				
			||||||
                </Typography>
 | 
					                </Typography>
 | 
				
			||||||
                    </div>
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                <Typography align="center">
 | 
					                <Typography align="center">
 | 
				
			||||||
                    <Button variant="contained" color="default" className={classes.button} onClick={this.reset}>
 | 
					                    <Button variant="contained" color="default" className={classes.button} onClick={this.reset}>
 | 
				
			||||||
                        Reset
 | 
					                        Reset
 | 
				
			||||||
                        <RefreshIcon className={classes.rightIcon} />
 | 
					                        <RefreshIcon className={classes.rightIcon} />
 | 
				
			||||||
                    </Button>
 | 
					                    </Button>
 | 
				
			||||||
                </Typography>
 | 
					                </Typography>
 | 
				
			||||||
            </Fragment>
 | 
					            </div>
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user