Skip to content

Commit

Permalink
[filigran-ui][version] v0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hervyt committed Jul 1, 2024
1 parent 5016979 commit d47dc44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/filigran-ui/src/components/clients/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ const DataTableOptionsHeader = <TData, TValue>({
</DropdownMenuItem>
</>
)}
{(menuItems || column.getCanHide()) && <DropdownMenuSeparator />}
{(menuItems || (column.getCanHide() && column.getCanSort())) && (
<DropdownMenuSeparator />
)}

{column.getCanHide() && (
<DropdownMenuItem onClick={() => column.toggleVisibility(false)}>
Expand Down
3 changes: 2 additions & 1 deletion projects/filigran-website/components/example-data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export function ExampleDataTable() {
{
id: 'firstName',
accessorKey: 'firstName',
enableHiding: false,
enableHiding: true,
enableSorting: false,
cell: (info) => (
<HighlightSearchTerm text={info.getValue() as string} />
),
Expand Down

0 comments on commit d47dc44

Please sign in to comment.