From 00265bdfa1e0c8656ad85cad95e159ffdd2d380e Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 4 May 2025 20:26:44 +0700 Subject: [PATCH] fix(lib/discord/ui): cleanup common exports --- lib/discord/src/ui/common.ts | 6 ++++-- lib/discord/src/ui/settings/common.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/discord/src/ui/common.ts b/lib/discord/src/ui/common.ts index 02d2301..1174ac2 100644 --- a/lib/discord/src/ui/common.ts +++ b/lib/discord/src/ui/common.ts @@ -11,13 +11,13 @@ export let Components: Components = proxify( // [3237, 1366, 3238, 3239, 2, ...]; const module = lookupModule( moduleStateAware( - byProps('TableRow', 'Button'), + byProps('TableRow', 'Button'), byDependencies(looseDeps([relativeDep(1), undefined, relativeDep(2), relativeDep(3), 2])), ), { includeUninitialized: true, }, - ) as Components | undefined + ) if (module) { // This allows the Proxy instance to be garbage collected @@ -46,7 +46,9 @@ export interface Components { IconButton: DiscordModules.Components.IconButton ImageButton: DiscordModules.Components.ImageButton Stack: DiscordModules.Components.Stack + Slider: DiscordModules.Components.Slider TableRow: DiscordModules.Components.TableRow + TableRowGroup: DiscordModules.Components.TableRowGroup TableRowTrailingText: DiscordModules.Components.TableRowTrailingText TableSwitchRow: DiscordModules.Components.TableSwitchRow Text: DiscordModules.Components.Text diff --git a/lib/discord/src/ui/settings/common.ts b/lib/discord/src/ui/settings/common.ts index 81a2b49..7a9b6c0 100644 --- a/lib/discord/src/ui/settings/common.ts +++ b/lib/discord/src/ui/settings/common.ts @@ -11,7 +11,7 @@ export let SettingListRenderer: SettingListRenderer = proxify( () => { const module = lookupModule( moduleStateAware( - byProps('SettingsList'), + byProps('SettingsList'), byDependencies( looseDeps([ ReactModuleId, @@ -26,7 +26,7 @@ export let SettingListRenderer: SettingListRenderer = proxify( { includeUninitialized: true, }, - ) as SettingListRenderer | undefined + ) if (module) { // This allows the Proxy instance to be garbage collected