diff --git a/app/src/components/AccessControl/LockDialog/ListLobbyPeer.js b/app/src/components/AccessControl/LockDialog/ListLobbyPeer.js index 665561d..814dbcd 100644 --- a/app/src/components/AccessControl/LockDialog/ListLobbyPeer.js +++ b/app/src/components/AccessControl/LockDialog/ListLobbyPeer.js @@ -69,6 +69,10 @@ const styles = (theme) => { backgroundColor : 'var(--media-control-botton-on)' } + }, + ListItem : + { + alignItems: 'center' } }); @@ -84,13 +88,14 @@ const ListLobbyPeer = (props) => return ( - + @@ -99,10 +104,10 @@ const ListLobbyPeer = (props) => disabled : peer.promotionInProgress })} onClick={(e) => - { - e.stopPropagation(); - roomClient.promoteLobbyPeer(peer.id); - }} + { + e.stopPropagation(); + roomClient.promoteLobbyPeer(peer.id); + }} > diff --git a/app/src/components/AccessControl/LockDialog/LockDialog.js b/app/src/components/AccessControl/LockDialog/LockDialog.js index 021cf20..f5b10ca 100644 --- a/app/src/components/AccessControl/LockDialog/LockDialog.js +++ b/app/src/components/AccessControl/LockDialog/LockDialog.js @@ -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 = ({ - { lobbyPeers.length > 0 ? - - Participants in Lobby - - }> - { - lobbyPeers.map((peerId) => { return (); }) + { (lobbyPeers.length > 0) && + + Participants in Lobby + } + > + { + lobbyPeers.map((peerId) => + { + return (); + }) + } - : null } -