Skip to content

Commit

Permalink
added in address card
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Feb 1, 2024
1 parent 1a2cb37 commit ab91bf1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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}`
Expand Down Expand Up @@ -109,6 +112,7 @@ export function RepTokensDemo() {
<ImageCard props={imageProps} />
<StringCard props={nameProps} />
<StringCard props={descriptionsProps} />
<Address props={addressProps} />
<StringCard props={isTradeableProps} />
<StringCard props={maxMintAmountProps} />
<TokenCard props={singleCard} />
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit ab91bf1

Please sign in to comment.