mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 23:38:32 +00:00
Made icon PascalCase
This commit is contained in:
parent
175088ce2f
commit
49777e4e5f
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ interface IMessageCreate {
|
|||
message: Message;
|
||||
}
|
||||
|
||||
function icon(enabled?: boolean): JSX.Element {
|
||||
function Icon(enabled?: boolean): JSX.Element {
|
||||
return <svg
|
||||
width="18"
|
||||
height="18"
|
||||
|
@ -67,7 +67,7 @@ function ContextCallback(name: "guild" | "user" | "channel"): NavContextMenuPatc
|
|||
<Menu.MenuItem
|
||||
id={`dnd-${name}-bypass`}
|
||||
label={`${enabled ? "Remove" : "Add"} DND Bypass`}
|
||||
icon={() => icon(enabled)}
|
||||
icon={() => Icon(enabled)}
|
||||
action={() => {
|
||||
let bypasses: string[] = settings.store[`${name}s`].split(", ");
|
||||
if (enabled) bypasses = bypasses.filter(id => id !== type.id);
|
||||
|
|
Loading…
Add table
Reference in a new issue