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 && }
; }