mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
41 lines
964 B
TypeScript
41 lines
964 B
TypeScript
|
import { Eye } from 'lucide-react';
|
||
|
|
||
|
import { Icon } from '@@/Icon';
|
||
|
import {
|
||
|
Sheet,
|
||
|
SheetContent,
|
||
|
SheetDescription,
|
||
|
SheetHeader,
|
||
|
SheetTrigger,
|
||
|
} from '@@/Sheet';
|
||
|
|
||
|
import { HelmRelease } from '../types';
|
||
|
|
||
|
import { HelmRevisionList } from './HelmRevisionList';
|
||
|
|
||
|
export function HelmRevisionListSheet({
|
||
|
currentRevision,
|
||
|
history,
|
||
|
}: {
|
||
|
currentRevision: number | undefined;
|
||
|
history: HelmRelease[] | undefined;
|
||
|
}) {
|
||
|
return (
|
||
|
<Sheet>
|
||
|
<SheetTrigger className="btn btn-link">
|
||
|
<Icon icon={Eye} />
|
||
|
View revisions
|
||
|
</SheetTrigger>
|
||
|
<SheetContent className="!w-80 !p-0 !pt-1 overflow-auto">
|
||
|
<div className="sr-only">
|
||
|
<SheetHeader title="Revisions" />
|
||
|
<SheetDescription>
|
||
|
View the history of this Helm application.
|
||
|
</SheetDescription>
|
||
|
</div>
|
||
|
<HelmRevisionList currentRevision={currentRevision} history={history} />
|
||
|
</SheetContent>
|
||
|
</Sheet>
|
||
|
);
|
||
|
}
|