diff --git a/packages/profile/src/components/activity.tsx b/packages/profile/src/components/activity.tsx index 0443fab4e..6db399993 100644 --- a/packages/profile/src/components/activity.tsx +++ b/packages/profile/src/components/activity.tsx @@ -5,6 +5,7 @@ import { CheckIcon, CopyAddress, ExternalIcon, + ScrollArea, } from "@cartridge/ui-next"; import { useInfiniteTokenTransfersQuery } from "@cartridge/utils/api/indexer"; import { @@ -55,52 +56,61 @@ export function Activity() { case "success": { return ( - - {data.pages.map((p) => - p.tokenTransfers?.edges.length ? ( - p.tokenTransfers.edges.map(({ node: t }) => { - switch (t.tokenMetadata.__typename) { - case "ERC20__Token": { - return ( - - -
- -
- Send{" "} - {Number(t.tokenMetadata.amount) / - 10 ** - Number( - t.tokenMetadata?.decimals, - )}{" "} - {t.tokenMetadata?.symbol} + + + {data.pages.map((p) => + p.tokenTransfers?.edges.length ? ( + p.tokenTransfers.edges.map(({ node: t }) => { + switch (t.tokenMetadata.__typename) { + case "ERC20__Token": { + return ( + + +
+ +
+ Send{" "} + {Number(t.tokenMetadata.amount) / + 10 ** + Number( + t.tokenMetadata?.decimals, + )}{" "} + {t.tokenMetadata?.symbol} +
-
- - - - ); + + + + ); + } + case "ERC721__Token": + return null; } - case "ERC721__Token": - return null; - } - }) - ) : ( - No data - ), - )} + }) + ) : ( + No data + ), + )} + {hasNextPage && ( - + )} - + ); } diff --git a/packages/ui-next/src/components/primitives/button.tsx b/packages/ui-next/src/components/primitives/button.tsx index 2e75eccab..980dd39ef 100644 --- a/packages/ui-next/src/components/primitives/button.tsx +++ b/packages/ui-next/src/components/primitives/button.tsx @@ -23,7 +23,7 @@ const buttonVariants = cva( }, size: { default: "h-10 px-4 tracking-wide text-base", - // sm: "h-9 px-3 text-sm", + sm: "h-9 px-3 text-sm", // lg: "h-11 px-8 tracking-widest text-lg", icon: "h-10 w-10", },