1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 06:19:41 +02:00
portainer/app/react/kubernetes/more-resources/ServiceAccountsView/ServiceAccountsView.tsx

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

23 lines
560 B
TypeScript
Raw Normal View History

import { useUnauthorizedRedirect } from '@/react/hooks/useUnauthorizedRedirect';
import { PageHeader } from '@@/PageHeader';
import { ServiceAccountsDatatable } from './ServiceAccountsDatatable';
export function ServiceAccountsView() {
useUnauthorizedRedirect(
{ authorizations: ['K8sServiceAccountsW'], adminOnlyCE: true },
{ to: 'kubernetes.dashboard' }
);
return (
<>
<PageHeader
title="Service Account list"
breadcrumbs="Service Accounts"
reload
/>
<ServiceAccountsDatatable />
</>
);
}