1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +00:00

remove comment

This commit is contained in:
Elvy 2025-01-04 18:28:38 +01:00
parent 84952943c6
commit 202cda9f99
2 changed files with 4 additions and 5 deletions

View file

@ -24,8 +24,6 @@ const getDMChannelIcon = findByCodeLazy(".getChannelIconURL({");
const GroupDMAvatars = findComponentByCodeLazy(".AvatarSizeSpecs[", "getAvatarURL"); const GroupDMAvatars = findComponentByCodeLazy(".AvatarSizeSpecs[", "getAvatarURL");
// FIXME saving is broken, so are indexes apparently?
const CloseIcon = () => { const CloseIcon = () => {
return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="18" height="18"> return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="18" height="18">
<path d="M17.3 18.7a1 1 0 0 0 1.4-1.4L13.42 12l5.3-5.3a1 1 0 0 0-1.42-1.4L12 10.58l-5.3-5.3a1 1 0 0 0-1.4 1.42L10.58 12l-5.3 5.3a1 1 0 1 0 1.42 1.4L12 13.42l5.3 5.3Z" /> <path d="M17.3 18.7a1 1 0 0 0 1.4-1.4L13.42 12l5.3-5.3a1 1 0 0 0-1.42-1.4L12 10.58l-5.3-5.3a1 1 0 0 0-1.4 1.42L10.58 12l-5.3 5.3a1 1 0 1 0 1.42 1.4L12 13.42l5.3 5.3Z" />
@ -255,10 +253,11 @@ export function SettingArrayComponent({
return; return;
} }
const newItems = [...items, inputElement.value];
setItems([...items, inputElement.value]); setItems([...items, inputElement.value]);
console.log(pluginSettings[id]);
pluginSettings[id] = items; pluginSettings[id] = items;
console.log(pluginSettings[id]);
inputElement.value = ""; inputElement.value = "";
} }

View file

@ -106,7 +106,7 @@ export default definePlugin({
contextMenus: { contextMenus: {
"channel-context": MakeContextCallback("Channel"), "channel-context": MakeContextCallback("Channel"),
"thread-context": MakeContextCallback("Channel"), "thread-context": MakeContextCallback("Channel"),
"gdm-context": MakeContextCallback("Channel"), // TODO make this work "gdm-context": MakeContextCallback("Channel"),
"guild-context": MakeContextCallback("Guild"), "guild-context": MakeContextCallback("Guild"),
"user-context": MakeContextCallback("User") "user-context": MakeContextCallback("User")
}, },