1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 13:25:26 +02:00

refactor(docker/swarm): migrate nodes table to react [EE-4672] (#10184)

This commit is contained in:
Chaim Lev-Ari 2023-09-13 10:51:33 +01:00 committed by GitHub
parent fbdbd277f7
commit bf85a8861d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 210 additions and 255 deletions

View file

@ -0,0 +1,16 @@
import clsx from 'clsx';
import { nodeStatusBadge } from '@/docker/filters/utils';
import { columnHelper } from './column-helper';
export const status = columnHelper.accessor('Status', {
cell({ getValue }) {
const value = getValue();
return (
<span className={clsx('label', `label-${nodeStatusBadge(value)}`)}>
{value}
</span>
);
},
});