Add tooltip to icon for letting peer into room.
parent
1f60222b75
commit
ce76a28e0e
|
|
@ -11,6 +11,7 @@ import ListItemAvatar from '@material-ui/core/ListItemAvatar';
|
||||||
import Avatar from '@material-ui/core/Avatar';
|
import Avatar from '@material-ui/core/Avatar';
|
||||||
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
||||||
import PromoteIcon from '@material-ui/icons/OpenInBrowser';
|
import PromoteIcon from '@material-ui/icons/OpenInBrowser';
|
||||||
|
import Tooltip from '@material-ui/core/Tooltip';
|
||||||
|
|
||||||
const styles = (theme) =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
|
|
@ -99,6 +100,7 @@ const ListLobbyPeer = (props) =>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={peer.displayName}
|
primary={peer.displayName}
|
||||||
/>
|
/>
|
||||||
|
<Tooltip title='Click to let them in'>
|
||||||
<ListItemIcon
|
<ListItemIcon
|
||||||
className={classnames(classes.button, 'promote', {
|
className={classnames(classes.button, 'promote', {
|
||||||
disabled : peer.promotionInProgress
|
disabled : peer.promotionInProgress
|
||||||
|
|
@ -111,6 +113,7 @@ const ListLobbyPeer = (props) =>
|
||||||
>
|
>
|
||||||
<PromoteIcon />
|
<PromoteIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
</Tooltip>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue