diff --git a/packages/nextjs/app/rep-tokens-demo/_components/RepTokensDemo.tsx b/packages/nextjs/app/rep-tokens-demo/_components/RepTokensDemo.tsx index 5144b8b..99cb285 100644 --- a/packages/nextjs/app/rep-tokens-demo/_components/RepTokensDemo.tsx +++ b/packages/nextjs/app/rep-tokens-demo/_components/RepTokensDemo.tsx @@ -1,6 +1,7 @@ "use client"; import { tokenCardConfigProps as singleCardConfig } from "./configs/SingleCardConfig"; +import { addressConfigProps } from "./configs/values/AddressCardConfig"; import { balanceConfigProps } from "./configs/values/BalanceCardConfig"; import { descriptionConfigProps } from "./configs/values/DescriptionCardConfig"; import { imageConfigProps } from "./configs/values/ImageCardConfig"; @@ -42,6 +43,8 @@ export function RepTokensDemo() { const nameProps = buildStringCard(tokensData?.tokens[0]?.name, nameConfigProps); const descriptionsProps = buildStringCard(tokensData?.tokens[0]?.description, descriptionConfigProps); const imageProps = buildImageCard(tokensData?.tokens[0]?.image, imageConfigProps); + const addressProps = buildStringCard(tokensData?.address, addressConfigProps); + const isTradeableProps = buildStringCard( tokensData?.tokens[0]?.properties?.isTradeable !== undefined ? `Is Tradeable: ${tokensData?.tokens[0]?.properties.isTradeable}` @@ -109,6 +112,7 @@ export function RepTokensDemo() { +
diff --git a/packages/nextjs/app/rep-tokens-demo/_components/configs/values/AddressCardConfig.ts b/packages/nextjs/app/rep-tokens-demo/_components/configs/values/AddressCardConfig.ts new file mode 100644 index 0000000..3ab6682 --- /dev/null +++ b/packages/nextjs/app/rep-tokens-demo/_components/configs/values/AddressCardConfig.ts @@ -0,0 +1,10 @@ +import { ValueCardConfigProps } from "~~/components/rep-tokens/types/Types"; + +export const addressConfigProps = { + isRendering: true, + classes: { + card: "w-64 rounded-lg bg-pink-300 ", + value: "text-1xl text-center object-center mx-auto font-bold break-all text-black", + }, + isPrettyLoading: true, +} as ValueCardConfigProps;