diff --git a/apps/dokploy/components/dashboard/home/show-home.tsx b/apps/dokploy/components/dashboard/home/show-home.tsx index 47d7bf31e..d6c58bf99 100644 --- a/apps/dokploy/components/dashboard/home/show-home.tsx +++ b/apps/dokploy/components/dashboard/home/show-home.tsx @@ -45,13 +45,19 @@ function StatCard({ label, value, delta, + href, }: { label: string; value: string; delta?: string; + href?: string; }) { - return ( -
+ const content = ( +
{label} @@ -63,6 +69,16 @@ function StatCard({
); + + if (href) { + return ( + + {content} + + ); + } + + return content; } function StatusListCard({ @@ -182,6 +198,7 @@ export const ShowHome = () => { label="Projects" value={String(totals.projects)} delta={`${totals.environments} ${totals.environments === 1 ? "environment" : "environments"}`} + href="/dashboard/projects" />