From 2c232ba04d96688c66ec9cacd6e54ad316d3c8c6 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Wed, 25 Dec 2024 16:36:12 -0500 Subject: [PATCH] fix insanity --- index.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/index.tsx b/index.tsx index fe1be29..5f87586 100644 --- a/index.tsx +++ b/index.tsx @@ -21,8 +21,8 @@ function OutputVolumeComponent() { return ( <> - {Settings.plugins.VCSettings.showOutputVolumeHeader && Output volume - {Math.floor(outputVolume)}%} - { + {Settings.plugins.VCPanelSettings.showOutputVolumeHeader && Output volume - {Math.floor(outputVolume)}%} + { FluxDispatcher.dispatch({ type: "AUDIO_SET_OUTPUT_VOLUME", volume @@ -42,7 +42,7 @@ function InputVolumeComponent() { return ( <> - {Settings.plugins.VCSettings.showInputVolumeHeader && Input volume - {Math.floor(inputVolume)}%} + {Settings.plugins.VCPanelSettings.showInputVolumeHeader && Input volume - {Math.floor(inputVolume)}%} { FluxDispatcher.dispatch({ type: "AUDIO_SET_INPUT_VOLUME", @@ -63,9 +63,9 @@ function OutputDeviceComponent() { return ( <> - {Settings.plugins.VCSettings.showOutputDeviceHeader && Output device} + {Settings.plugins.VCPanelSettings.showOutputDeviceHeader && Output device} { - return { value: device.id, label: Settings.plugins.VCSettings.showInputDeviceHeader ? device.name : `🎤 ${device.name}` }; + return { value: device.id, label: Settings.plugins.VCPanelSettings.showInputDeviceHeader ? device.name : `🎤 ${device.name}` }; })} serialize={identity} isSelected={(value) => value === inputDevice} @@ -110,11 +110,11 @@ function InputDeviceComponent() { } function VoiceSettings() { - return
- {Settings.plugins.VCSettings.outputVolume && } - {Settings.plugins.VCSettings.inputVolume && } - {Settings.plugins.VCSettings.outputDevice && } - {Settings.plugins.VCSettings.inputDevice && } + return
+ {Settings.plugins.VCPanelSettings.outputVolume && } + {Settings.plugins.VCPanelSettings.inputVolume && } + {Settings.plugins.VCPanelSettings.outputDevice && } + {Settings.plugins.VCPanelSettings.inputDevice && }
; }