diff options
Diffstat (limited to 'src/plugins/showHiddenChannels')
-rw-r--r-- | src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx | 10 | ||||
-rw-r--r-- | src/plugins/showHiddenChannels/index.tsx | 2 |
2 files changed, 6 insertions, 6 deletions
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<Tag>; } -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 } |