mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(app): redesign dashboard-item component [EE-3634] (#7175)
This commit is contained in:
parent
a66fd78dc1
commit
8bf1c91bc9
15 changed files with 236 additions and 248 deletions
18
app/react/docker/DashboardView/ImagesTotalSize.tsx
Normal file
18
app/react/docker/DashboardView/ImagesTotalSize.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
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>
|
||||
<i className="fa fa-chart-pie space-right" />
|
||||
{humanize(imagesTotalSize)}
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue