1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00
portainer/app/react/sidebar/items/VolumesLink.tsx
Chaim Lev-Ari 882051cc30
chore(sidebar): add data-cys [EE-3605] (#7143)
* chore(sidebar): add data-cys [EE-3605]

fix [EE-3605]
2022-06-28 19:36:40 +03:00

27 lines
600 B
TypeScript

import { Database } from 'react-feather';
import { EnvironmentId } from '@/portainer/environments/types';
import { AutomationTestingProps } from '@/types';
import { SidebarItem } from '../SidebarItem';
interface Props extends AutomationTestingProps {
environmentId: EnvironmentId;
platformPath: string;
}
export function VolumesLink({
environmentId,
platformPath,
'data-cy': dataCy,
}: Props) {
return (
<SidebarItem
to={`${platformPath}.volumes`}
params={{ endpointId: environmentId }}
icon={Database}
label="Volumes"
data-cy={dataCy}
/>
);
}