From f04cdb3cdb4d39efc37910ecbae48051db740b43 Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Tue, 10 Dec 2024 12:22:44 +0530 Subject: [PATCH] feat(frontend): make the text dim --- .../app/routes/_dashboard.analytics.tsx | 49 ++++++++++++++++--- 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/apps/frontend/app/routes/_dashboard.analytics.tsx b/apps/frontend/app/routes/_dashboard.analytics.tsx index 7615ef76f7..99045624b8 100644 --- a/apps/frontend/app/routes/_dashboard.analytics.tsx +++ b/apps/frontend/app/routes/_dashboard.analytics.tsx @@ -35,11 +35,24 @@ import { snakeCase, sum, } from "@ryot/ts-utils"; -import { IconDeviceFloppy, IconImageInPicture } from "@tabler/icons-react"; +import { + IconBarbell, + IconClock, + IconDeviceFloppy, + IconImageInPicture, + type IconProps, + IconRepeat, + IconRoad, + IconRulerMeasure, + IconStretching, + IconTrophy, + IconWeight, + IconZzz, +} from "@tabler/icons-react"; import { useQuery } from "@tanstack/react-query"; import html2canvas from "html2canvas"; import { produce } from "immer"; -import { type ReactNode, useRef, useState } from "react"; +import { type ComponentType, type ReactNode, useRef, useState } from "react"; import { ClientOnly } from "remix-utils/client-only"; import { match } from "ts-pattern"; import { useLocalStorage } from "usehooks-ts"; @@ -567,10 +580,17 @@ const TimeOfDayChart = () => { ); }; -const StatItem = (props: { label: string; text: string }) => { +const StatItem = (props: { + text: string; + label: string; + icon: ComponentType; +}) => { return ( - - {props.label} + + + + {props.label} + {props.text} @@ -594,13 +614,23 @@ const StatisticsCard = () => { totalItems: fitness.workoutCount + fitness.measurementCount, render: ( - - + + { />