diff --git a/apps/frontend/src/pages/index.tsx b/apps/frontend/src/pages/index.tsx index 0f2926905b..13f20635c4 100644 --- a/apps/frontend/src/pages/index.tsx +++ b/apps/frontend/src/pages/index.tsx @@ -17,16 +17,25 @@ import { useMutation, useQuery } from "@tanstack/react-query"; import type { RegerateUserSummaryMutationVariables } from "@trackona/generated/graphql/backend/graphql"; import { REGENERATE_USER_SUMMARY } from "@trackona/graphql/backend/mutations"; import { USER_SUMMARY } from "@trackona/graphql/backend/queries"; +import { + HumanizeDuration, + HumanizeDurationLanguage, +} from "humanize-duration-ts"; import type { ReactElement } from "react"; +const service = new HumanizeDurationLanguage(); +const humaizer = new HumanizeDuration(service); + const StatTitle = (props: { text: string }) => { return