From 38b5dce7634c7338c5c0c0e43eff80f1238b02ad Mon Sep 17 00:00:00 2001 From: Ivan Chub Date: Wed, 24 Jul 2024 14:55:35 -0700 Subject: [PATCH] more --- .../components/screens/HomeScreen/Folder.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/passport-client/components/screens/HomeScreen/Folder.tsx b/apps/passport-client/components/screens/HomeScreen/Folder.tsx index 689741592e..422278771e 100644 --- a/apps/passport-client/components/screens/HomeScreen/Folder.tsx +++ b/apps/passport-client/components/screens/HomeScreen/Folder.tsx @@ -1,6 +1,7 @@ import { getNameFromPath, getParentFolder } from "@pcd/pcd-collection"; import { CSSProperties, useCallback } from "react"; import styled from "styled-components"; +import { usePCDsInFolder } from "../../../src/appHooks"; import { cn } from "../../../src/util"; export function FolderCard({ @@ -16,6 +17,8 @@ export function FolderCard({ onFolderClick(folder); }, [folder, onFolderClick]); + const pcds = usePCDsInFolder(folder); + return ( {getNameFromPath(folder)} +
+ {pcds.length} ticket{pcds.length > 1 ? "s" : ""} +
); }