mirror of https://github.com/jetkvm/kvm.git
fix(AudioControlPopover): swap mute button theme and labels for clarity & consistency
This commit is contained in:
parent
b267348084
commit
e27f1cfa59
|
@ -299,8 +299,8 @@ export default function AudioControlPopover({ microphone }: AudioControlPopoverP
|
|||
</div>
|
||||
<Button
|
||||
size="SM"
|
||||
theme={isMuted ? "danger" : "primary"}
|
||||
text={isMuted ? "Unmute" : "Mute"}
|
||||
theme={isMuted ? "primary" : "danger"}
|
||||
text={isMuted ? "Enable" : "Disable"}
|
||||
onClick={handleToggleMute}
|
||||
disabled={isLoading}
|
||||
/>
|
||||
|
@ -330,9 +330,9 @@ export default function AudioControlPopover({ microphone }: AudioControlPopoverP
|
|||
size="SM"
|
||||
theme={isMicrophoneActive ? "danger" : "primary"}
|
||||
text={
|
||||
isStarting ? "Unmuting..." :
|
||||
isStopping ? "Muting..." :
|
||||
isMicrophoneActive ? "Mute" : "Unmute"
|
||||
isStarting ? "Enabling..." :
|
||||
isStopping ? "Disabling..." :
|
||||
isMicrophoneActive ? "Disable" : "Enable"
|
||||
}
|
||||
onClick={handleToggleMicrophoneMute}
|
||||
disabled={isStarting || isStopping || isToggling}
|
||||
|
|
Loading…
Reference in New Issue