fix(container): column selection UI issue EE-5780 (#9242)

pull/9244/head
cmeng 1 year ago committed by GitHub
parent 94379763f8
commit 634326b5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,4 @@
import _ from 'lodash';
import clsx from 'clsx'; import clsx from 'clsx';
import { Menu, MenuButton, MenuList } from '@reach/menu-button'; import { Menu, MenuButton, MenuList } from '@reach/menu-button';
import { Columns } from 'lucide-react'; import { Columns } from 'lucide-react';
@ -44,7 +45,7 @@ export function ColumnVisibilityMenu<D extends object>({
label={ label={
typeof column.columnDef.header === 'string' typeof column.columnDef.header === 'string'
? column.columnDef.header ? column.columnDef.header
: '' : _.capitalize(column.columnDef.id)
} }
id={`visibility_${column.id}`} id={`visibility_${column.id}`}
onChange={(e) => onChange={(e) =>

@ -40,6 +40,7 @@ export function createSelectColumn<T>(): ColumnDef<T> {
}} }}
/> />
), ),
enableHiding: false,
meta: { meta: {
width: 50, width: 50,
}, },

Loading…
Cancel
Save