From f61661ac27ef2c26f9a8a800624aea768d747d07 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 26 Oct 2025 13:55:22 +0700 Subject: [PATCH] fix(lib/discord/design): correct types for Design and TableRow --- lib/discord/src/design.ts | 1 - lib/discord/src/types/index.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/discord/src/design.ts b/lib/discord/src/design.ts index ccafe56..614fbed 100644 --- a/lib/discord/src/design.ts +++ b/lib/discord/src/design.ts @@ -126,7 +126,6 @@ export interface Design { TableRadioRow: typeof DiscordModules.Components.TableRadioRow TableRow: DiscordModules.Components.TableRow TableRowGroup: DiscordModules.Components.TableRowGroup - TableRowTrailingText: DiscordModules.Components.TableRowTrailingText TableSwitchRow: DiscordModules.Components.TableSwitchRow Text: DiscordModules.Components.Text TextArea: DiscordModules.Components.TextArea diff --git a/lib/discord/src/types/index.ts b/lib/discord/src/types/index.ts index 3e68a0f..34d1783 100644 --- a/lib/discord/src/types/index.ts +++ b/lib/discord/src/types/index.ts @@ -459,7 +459,7 @@ export namespace DiscordModules { export interface TableRowProps { label: string - subLabel?: string + subLabel?: ReactNode icon?: ReactNode trailing?: ReactNode arrow?: boolean @@ -478,6 +478,7 @@ export namespace DiscordModules { Arrow: FC Icon: TableRowIcon Group: TableRowGroup + TrailingText: TableRowTrailingText } export interface TableSwitchRowProps