1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00

refactor(kube/apps): migrate integrated apps table to react [EE-4690] (#11025)

This commit is contained in:
Chaim Lev-Ari 2024-04-02 22:37:47 +03:00 committed by GitHub
parent 26bb028ace
commit 946166319f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 291 additions and 260 deletions

View file

@ -0,0 +1,22 @@
import { CellContext } from '@tanstack/react-table';
import { Link } from '@@/Link';
import { helper } from './columns.helper';
import { IntegratedApp } from './types';
export const name = helper.accessor('Name', {
header: 'Name',
cell: Cell,
});
function Cell({ row: { original: item } }: CellContext<IntegratedApp, string>) {
return (
<Link
to="kubernetes.applications.application"
params={{ name: item.Name, namespace: item.ResourcePool }}
>
{item.Name}
</Link>
);
}