Label to indicate which field is a partition key in Column Selection Pane

This commit is contained in:
Laurent Nguyen 2024-08-23 17:59:16 +02:00
parent 777b695051
commit 26645f8360

View File

@ -95,7 +95,7 @@ export const TableColumnSelectionPane: React.FC<TableColumnSelectionPaneProps> =
<Checkbox
className="tableColumnSelectionCheckbox"
key={columnDefinition.id}
label={columnDefinition.label}
label={`${columnDefinition.label}${columnDefinition.isPartitionKey ? " (partition key)" : ""}`}
checked={selectedColumnIdsSet.has(columnDefinition.id)}
onChange={(_, checked) => onCheckedValueChange(columnDefinition.id, checked)}
/>