diff --git a/packages/tui/src/ui/dialog-select.tsx b/packages/tui/src/ui/dialog-select.tsx index 7ed7f3f3f74..56910d116a5 100644 --- a/packages/tui/src/ui/dialog-select.tsx +++ b/packages/tui/src/ui/dialog-select.tsx @@ -71,14 +71,11 @@ export interface DialogSelectOption { searchText?: string searchFooter?: JSX.Element | string details?: string[] - detailsColor?: RGBA - detailsWrap?: boolean footer?: JSX.Element | string footerColor?: RGBA titleWidth?: number truncateTitle?: boolean | "left" category?: string - categoryView?: JSX.Element disabled?: boolean bg?: RGBA fg?: RGBA @@ -713,16 +710,9 @@ export function DialogSelect(props: DialogSelectProps) { <> 0 ? 1 : 0} paddingLeft={3}> - - {category} - - } - > - {options[0]?.categoryView} - + + {category} + @@ -790,13 +780,8 @@ export function DialogSelect(props: DialogSelectProps) { {(detail) => ( - - {option.detailsWrap - ? detail - : Locale.truncateMiddle(detail, Math.max(1, Math.min(76, dimensions().width - 12)))} + + {Locale.truncateMiddle(detail, Math.max(1, Math.min(76, dimensions().width - 12)))} )}