From 07a9adbce25e42dcd4d1eb25ee011328d0543304 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 13 Jun 2023 02:36:25 +0200 Subject: 🧹🧹 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../showHiddenChannels/components/HiddenChannelLockScreen.tsx | 10 +++++----- src/plugins/showHiddenChannels/index.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/showHiddenChannels') diff --git a/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx b/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx index d01efec..8b41e16 100644 --- a/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx +++ b/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx @@ -29,12 +29,12 @@ import openRolesAndUsersPermissionsModal, { PermissionType, RoleOrUserPermission import { sortPermissionOverwrites } from "../../permissionsViewer/utils"; import { settings, VIEW_CHANNEL } from ".."; -enum SortOrderTypes { +const enum SortOrderTypes { LATEST_ACTIVITY = 0, CREATION_DATE = 1 } -enum ForumLayoutTypes { +const enum ForumLayoutTypes { DEFAULT = 0, LIST = 1, GRID = 2 @@ -61,7 +61,7 @@ interface ExtendedChannel extends Channel { availableTags?: Array; } -enum ChannelTypes { +const enum ChannelTypes { GUILD_TEXT = 0, GUILD_VOICE = 2, GUILD_ANNOUNCEMENT = 5, @@ -69,12 +69,12 @@ enum ChannelTypes { GUILD_FORUM = 15 } -enum VideoQualityModes { +const enum VideoQualityModes { AUTO = 1, FULL = 2 } -enum ChannelFlags { +const enum ChannelFlags { PINNED = 1 << 1, REQUIRE_TAG = 1 << 4 } diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 634b5cd..e32daae 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -34,7 +34,7 @@ const ChannelListClasses = findByPropsLazy("channelName", "subtitle", "modeMuted export const VIEW_CHANNEL = 1n << 10n; const CONNECT = 1n << 20n; -enum ShowMode { +const enum ShowMode { LockIcon, HiddenIconWithMutedStyle } -- cgit