Auto eslint fix
This commit is contained in:
@ -2,21 +2,19 @@
|
||||
import React, { memo } from 'react';
|
||||
import Icon from '../Icon';
|
||||
|
||||
export default memo((props) => {
|
||||
|
||||
if (props.mute){
|
||||
return (
|
||||
<button className={"control mute-control "+(props.noTooltip ? "" : "tooltip ")+(props.className ? props.className : "")} onClick={() => props.onMuteChange(false)}>
|
||||
<Icon className="red-text" name="volume_off" />
|
||||
{props.noTooltip ? null : <span className="tooltip__content">Unmute</span>}
|
||||
</button>
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<button className={"control mute-control "+(props.noTooltip ? "" : "tooltip ")+(props.className ? props.className : "")} onClick={() => props.onMuteChange(true)}>
|
||||
<Icon className="muted" name="volume_mute" />
|
||||
{props.noTooltip ? null : <span className="tooltip__content">Mute</span>}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
export default memo((props) => {
|
||||
if (props.mute) {
|
||||
return (
|
||||
<button className={`control mute-control ${props.noTooltip ? '' : 'tooltip '}${props.className ? props.className : ''}`} onClick={() => props.onMuteChange(false)}>
|
||||
<Icon className="red-text" name="volume_off" />
|
||||
{props.noTooltip ? null : <span className="tooltip__content">Unmute</span>}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<button className={`control mute-control ${props.noTooltip ? '' : 'tooltip '}${props.className ? props.className : ''}`} onClick={() => props.onMuteChange(true)}>
|
||||
<Icon className="muted" name="volume_mute" />
|
||||
{props.noTooltip ? null : <span className="tooltip__content">Mute</span>}
|
||||
</button>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user