mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
lint
This commit is contained in:
parent
1c9ed9b6f6
commit
8197966247
2 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,7 @@ export function SettingListComponent({
|
||||||
// Handle the submit action for the specific item
|
// Handle the submit action for the specific item
|
||||||
// This could involve updating the state, making an API call, etc.
|
// This could involve updating the state, making an API call, etc.
|
||||||
// Clear the input field after submission
|
// Clear the input field after submission
|
||||||
const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`);
|
const inputElement = document.getElementById(`vc-plugin-modal-input-${option.type === OptionType.CHANNELS ? "channel" : option.type === OptionType.GUILDS ? "guild" : option.type === OptionType.USERS ? "user" : "string"}`) as HTMLInputElement;
|
||||||
if (!inputElement || inputElement.value === "") {
|
if (!inputElement || inputElement.value === "") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@ function renderRegisteredPlugins(name: "Guild" | "User" | "Channel", value: any)
|
||||||
{plugins[plugin].map(setting => (
|
{plugins[plugin].map(setting => (
|
||||||
<Menu.MenuCheckboxItem
|
<Menu.MenuCheckboxItem
|
||||||
id={`vc-plugin-settings-${plugin}-${setting}`}
|
id={`vc-plugin-settings-${plugin}-${setting}`}
|
||||||
|
// @ts-ignore popoutText exists due to this being a list option type FIXMe look at this again
|
||||||
label={Vencord.Plugins.plugins[plugin].settings?.def[setting].popoutText ?? setting}
|
label={Vencord.Plugins.plugins[plugin].settings?.def[setting].popoutText ?? setting}
|
||||||
action={() => handleCheckboxClick(plugin, setting)}
|
action={() => handleCheckboxClick(plugin, setting)}
|
||||||
checked={checkedItems[`${plugin}-${setting}-${value.id}`]}
|
checked={checkedItems[`${plugin}-${setting}-${value.id}`]}
|
||||||
|
|
Loading…
Reference in a new issue