From e522d3deec76c2dc4e23a5240571ac150b4cac4a Mon Sep 17 00:00:00 2001 From: Vitalsine85 Date: Tue, 10 Sep 2024 15:40:41 -0400 Subject: [PATCH] make home protocol stats clickable --- .../app/components/home/home-stats-header.tsx | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/apps/portal/app/components/home/home-stats-header.tsx b/apps/portal/app/components/home/home-stats-header.tsx index 9a1b25f55..e275b6500 100644 --- a/apps/portal/app/components/home/home-stats-header.tsx +++ b/apps/portal/app/components/home/home-stats-header.tsx @@ -2,6 +2,9 @@ import React from 'react' import { Separator, Text } from '@0xintuition/1ui' +import { PATHS } from '@consts/paths' +import { Link } from '@remix-run/react' + interface HomeStatsHeaderProps extends React.HTMLAttributes { totalIdentities: number totalClaims: number @@ -26,8 +29,16 @@ export function HomeStatsHeader({ {...props} >
- - + + {/* */}
{/* {totalStaked && } */} - - + +
) @@ -46,11 +65,12 @@ export function HomeStatsHeader({ interface StatItemProps { label: string value: string | number + link: string } -function StatItem({ label, value }: StatItemProps) { +function StatItem({ label, value, link }: StatItemProps) { return ( -
+ {value} -
+ ) }