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

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

Loading…
Cancel
Save