1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00
portainer/app/react/docker/DashboardView/ImagesTotalSize.tsx
Rex Wang 69a824c25b
Fix(UI) Update UI of docker dashboard EE-3845 (#7422)
* EE-3846 fix alignment of left-hand side of fields
2022-08-05 10:17:31 +08:00

21 lines
552 B
TypeScript

import clsx from 'clsx';
import { Icon } from '@/react/components/Icon';
import { humanize } from '@/portainer/filters/filters';
interface Props {
imagesTotalSize: number;
}
export function useImagesTotalSizeComponent(imagesTotalSize: number) {
return <ImagesTotalSize imagesTotalSize={imagesTotalSize} />;
}
export function ImagesTotalSize({ imagesTotalSize }: Props) {
return (
<div className="vertical-center">
<Icon icon="pie-chart" className={clsx('space-right')} feather />
{humanize(imagesTotalSize)}
</div>
);
}