1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00
portainer/app/react/kubernetes/components/EventsDatatable/columns/name.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
346 B
TypeScript
Raw Normal View History

import { columnHelper } from './helper';
export const name = columnHelper.accessor(
(event) => event.involvedObject.name ?? '-',
{
header: 'Name',
cell: ({ getValue }) => {
const name = getValue();
return (
<span title={name} className="ellipsis max-w-sm">
{name}
</span>
);
},
}
);