eslint fixes;styling
parent
79ecaf7408
commit
abca024c84
|
|
@ -69,6 +69,10 @@ const styles = (theme) =>
|
|||
{
|
||||
backgroundColor : 'var(--media-control-botton-on)'
|
||||
}
|
||||
},
|
||||
ListItem :
|
||||
{
|
||||
alignItems: 'center'
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -84,9 +88,10 @@ const ListLobbyPeer = (props) =>
|
|||
|
||||
return (
|
||||
<ListItem
|
||||
className={classnames(classes.ListItem)}
|
||||
key={peer.peerId}
|
||||
button
|
||||
alignItems="flex-start"
|
||||
alignItems='flex-start'
|
||||
>
|
||||
<ListItemAvatar>
|
||||
<Avatar alt='Peer avatar' src={picture} />
|
||||
|
|
@ -99,10 +104,10 @@ const ListLobbyPeer = (props) =>
|
|||
disabled : peer.promotionInProgress
|
||||
})}
|
||||
onClick={(e) =>
|
||||
{
|
||||
e.stopPropagation();
|
||||
roomClient.promoteLobbyPeer(peer.id);
|
||||
}}
|
||||
{
|
||||
e.stopPropagation();
|
||||
roomClient.promoteLobbyPeer(peer.id);
|
||||
}}
|
||||
>
|
||||
<PromoteIcon />
|
||||
</ListItemIcon>
|
||||
|
|
|
|||
|
|
@ -16,15 +16,14 @@ import FormLabel from '@material-ui/core/FormLabel';
|
|||
import FormControl from '@material-ui/core/FormControl';
|
||||
import FormGroup from '@material-ui/core/FormGroup';
|
||||
import FormControlLabel from '@material-ui/core/FormControlLabel';
|
||||
import Checkbox from '@material-ui/core/Checkbox';
|
||||
import InputLabel from '@material-ui/core/InputLabel';
|
||||
import OutlinedInput from '@material-ui/core/OutlinedInput';
|
||||
// import Checkbox from '@material-ui/core/Checkbox';
|
||||
// import InputLabel from '@material-ui/core/InputLabel';
|
||||
// import OutlinedInput from '@material-ui/core/OutlinedInput';
|
||||
import Switch from '@material-ui/core/Switch';
|
||||
import List from '@material-ui/core/List';
|
||||
import ListSubheader from '@material-ui/core/ListSubheader';
|
||||
import ListLobbyPeer from './ListLobbyPeer';
|
||||
|
||||
|
||||
const styles = (theme) =>
|
||||
({
|
||||
root :
|
||||
|
|
@ -52,7 +51,7 @@ const styles = (theme) =>
|
|||
},
|
||||
lock :
|
||||
{
|
||||
padding : theme.spacing.unit * 2
|
||||
padding : theme.spacing(2)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -60,7 +59,7 @@ const LockDialog = ({
|
|||
roomClient,
|
||||
room,
|
||||
handleCloseLockDialog,
|
||||
handleAccessCode,
|
||||
// handleAccessCode,
|
||||
lobbyPeers,
|
||||
classes
|
||||
}) =>
|
||||
|
|
@ -123,21 +122,25 @@ const LockDialog = ({
|
|||
</FormGroup>
|
||||
</FormControl>
|
||||
|
||||
{ lobbyPeers.length > 0 ?
|
||||
<List subheader={
|
||||
<ListSubheader component="div">
|
||||
Participants in Lobby
|
||||
</ListSubheader>
|
||||
}>
|
||||
{
|
||||
lobbyPeers.map((peerId) => { return (<ListLobbyPeer id={peerId} />); })
|
||||
{ (lobbyPeers.length > 0) &&
|
||||
<List
|
||||
dense={true}
|
||||
subheader={
|
||||
<ListSubheader component='div'>
|
||||
Participants in Lobby
|
||||
</ListSubheader>
|
||||
}
|
||||
>
|
||||
{
|
||||
lobbyPeers.map((peerId) =>
|
||||
{
|
||||
return (<ListLobbyPeer key={peerId} id={peerId} />);
|
||||
})
|
||||
}
|
||||
</List>
|
||||
: null
|
||||
}
|
||||
</form>
|
||||
<DialogActions>
|
||||
|
||||
<Button onClick={() => handleCloseLockDialog({ lockDialogOpen: false })} color='primary'>
|
||||
Close
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue