Navbar issue fixed on 3 pages
This commit is contained in:
1 parent
0647b88c0d
commit
9071f96b7d
3 files changed
+16
-13
No files matched your search
@@ -1,11 +1,13 @@
|
||||
import React from 'react'
|
||||
import UserList from './UserList';
|
||||
import UserList from './UserList'
|
||||
import CssBaseline from '@material-ui/core/CssBaseline'
|
||||
|
||||
const Browse = () => {
|
||||
return (
|
||||
<div>
|
||||
<UserList/>
|
||||
</div>
|
||||
<React.Fragment>
|
||||
<CssBaseline />
|
||||
<UserList />
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import React, { Component } from 'react'
|
||||
import UserSearch from './UserSearch'
|
||||
import {compose} from 'react-apollo'
|
||||
import CssBaseline from '@material-ui/core/CssBaseline'
|
||||
|
||||
// Materia UI
|
||||
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import Paper from '@material-ui/core/Paper'
|
||||
|
||||
const styles = theme => ({
|
||||
root: {
|
||||
@@ -25,13 +25,14 @@ class Search extends Component {
|
||||
render () {
|
||||
const { classes } = this.props
|
||||
return (
|
||||
<Paper className={classes.root}>
|
||||
<React.Fragment>
|
||||
<CssBaseline />
|
||||
<UserSearch />
|
||||
</Paper>
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default compose(
|
||||
withStyles(styles)
|
||||
withStyles(styles)
|
||||
)(Search)
|
||||
@@ -61,7 +61,7 @@ const styles = theme => ({
|
||||
flex: 1,
|
||||
},
|
||||
grid: {
|
||||
paddingTop: '30',
|
||||
paddingTop: 30,
|
||||
marginTop:'30'
|
||||
},
|
||||
});
|
||||
@@ -96,7 +96,7 @@ class UserList extends Component {
|
||||
return ( <div> Loading Users... </div>);
|
||||
} else {
|
||||
return data.users.map(user => {
|
||||
|
||||
|
||||
return (
|
||||
|
||||
<Grid key={user.id} item>
|
||||
@@ -165,11 +165,11 @@ class UserList extends Component {
|
||||
render() {
|
||||
const { classes } = this.props;
|
||||
return (
|
||||
<Paper className={classes.root}>
|
||||
<Grid container justify="center" spacing={24}>
|
||||
<React.Fragment>
|
||||
<Grid container justify="center" spacing={24} className={classes.root}>
|
||||
{this.displayUsers()}
|
||||
</Grid>
|
||||
</Paper>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user