Skip to content

Commit c0fbfd6

Browse files
FBanfiJuliRossi
authored andcommitted
Bulk-Edit-App: Freeze top row with Field Names [INTEG-2953] (#10076)
* freeze top row with Field Names * removing unused import
1 parent df43ff6 commit c0fbfd6

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

apps/bulk-edit/src/locations/Page/components/TableHeader.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,19 @@ export const TableHeader: React.FC<TableHeaderProps> = ({
2323
return (
2424
<Table.Head style={styles.tableHead}>
2525
<Table.Row style={styles.stickyTableRow}>
26-
<Box style={styles.stickyMainColumnsOrFields}>
27-
{fields.length > 0 && (
28-
<Table.Cell as="th" key={DISPLAY_NAME_COLUMN} style={styles.tableHeader}>
29-
Display name
30-
</Table.Cell>
31-
)}
32-
<Table.Cell as="th" key={ENTRY_STATUS_COLUMN} style={styles.tableHeader}>
33-
<Flex gap="spacingXs" alignItems="center" justifyContent="flex-start">
34-
Status
35-
<Tooltip content="Bulk editing is not supported for Status" placement="top">
36-
<QuestionIcon size={16} aria-label="Bulk editing not supported for Status" />
37-
</Tooltip>
38-
</Flex>
26+
{fields.length > 0 && (
27+
<Table.Cell as="th" key={DISPLAY_NAME_COLUMN} style={styles.stickyTableHeader}>
28+
Display name
3929
</Table.Cell>
40-
</Box>
30+
)}
31+
<Table.Cell as="th" key={ENTRY_STATUS_COLUMN} style={styles.tableHeader}>
32+
<Flex gap="spacingXs" alignItems="center" justifyContent="flex-start">
33+
Status
34+
<Tooltip content="Bulk editing is not supported for Status" placement="top">
35+
<QuestionIcon size={16} aria-label="Bulk editing not supported for Status" />
36+
</Tooltip>
37+
</Flex>
38+
</Table.Cell>
4139
{fields.map((field) => {
4240
const isAllowed = isCheckboxAllowed(field);
4341
const isDisabled = checkboxesDisabled[field.uniqueId];

0 commit comments

Comments
 (0)