1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(home): change layout of env tile [EE-4479] (#8061)

This commit is contained in:
Chaim Lev-Ari 2022-12-07 16:51:20 +02:00 committed by GitHub
parent b48aa1274d
commit eba5879ec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 717 additions and 445 deletions

View file

@ -1,6 +1,6 @@
import { Power } from 'lucide-react';
import { Icon } from '@@/Icon';
import { StatsItem } from '@@/StatsItem';
interface Props {
running: number;
@ -11,11 +11,19 @@ export function RunningStatus({ running, stopped }: Props) {
return (
<div>
<div>
<Icon icon={Power} mode="success" />
<StatsItem
value={`${running || '-'} running`}
icon={Power}
iconClass="icon-success"
/>
{`${running || '-'} running`}
</div>
<div>
<Icon icon={Power} mode="danger" />
<StatsItem
value={`${stopped || '-'} stopped`}
icon={Power}
iconClass="icon-danger"
/>
{`${stopped || '-'} stopped`}
</div>
</div>