Add ability to change audio and video devices during a call (#7173)
This commit is contained in:
parent
ce3bc9dc07
commit
3c36a7f704
12 changed files with 247 additions and 24 deletions
|
@ -33,6 +33,7 @@ interface IProps extends IContextMenuProps {
|
|||
interface IOptionListProps {
|
||||
first?: boolean;
|
||||
red?: boolean;
|
||||
label?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
|
@ -126,13 +127,20 @@ export const IconizedContextMenuOption: React.FC<IOptionProps> = ({
|
|||
</MenuItem>;
|
||||
};
|
||||
|
||||
export const IconizedContextMenuOptionList: React.FC<IOptionListProps> = ({ first, red, className, children }) => {
|
||||
export const IconizedContextMenuOptionList: React.FC<IOptionListProps> = ({
|
||||
first,
|
||||
red,
|
||||
className,
|
||||
label,
|
||||
children,
|
||||
}) => {
|
||||
const classes = classNames("mx_IconizedContextMenu_optionList", className, {
|
||||
mx_IconizedContextMenu_optionList_notFirst: !first,
|
||||
mx_IconizedContextMenu_optionList_red: red,
|
||||
});
|
||||
|
||||
return <div className={classes}>
|
||||
{ label && <div><span className="mx_IconizedContextMenu_optionList_label">{ label }</span></div> }
|
||||
{ children }
|
||||
</div>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue