Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Monkeychip committed May 21, 2019
1 parent e22fe41 commit 11d0148
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions src/Home/components/SidePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const styles = theme => ({
width: drawerWidth,
},
listItem: {
// paddingLeft: 31,
padding: 5,
},
players: {
playerList: {
margin: 10,
},
playerName: {
Expand All @@ -42,7 +42,6 @@ const styles = theme => ({
selected: {
backgroundColor: '#ff0077',
borderRadius: 50,
backgroundClip: `content-box`,
},
titleBar: {
display: "flex",
Expand All @@ -69,18 +68,17 @@ class PermanentDrawerRight extends React.Component {
return response.json();
})
.then(myJson => {
this.setState({players: myJson});
return myJson.sort( () => Math.random() - 0.5);
})
.then(shuffled => {
this.setState({players: shuffled});
})
}



render() {
const { classes } = this.props;
if(this.state.players){
console.log(this.state.players.map(player => player.name))
}

return (
<div className={classes.root}>
<Drawer
Expand All @@ -101,7 +99,7 @@ class PermanentDrawerRight extends React.Component {
<RefreshIcon className={classes.rightIcon} />
</Button>
</div>
<List>
<List className={classes.playerList}>
{ this.state.players &&
this.state.players.map((player, i) => (
<ListItem button key={i} className={
Expand Down
2 changes: 1 addition & 1 deletion src/Home/components/data/dare.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const dareQuestions = {
questions: [
,{ shorttitle : 'Once upon a time',
{ shorttitle : 'Once upon a time',
key : 1,
longtitle : 'Make up an exciting story about the person to your right.' }
,{ shorttitle : 'Hello moooooom',
Expand Down

0 comments on commit 11d0148

Please sign in to comment.