Skip to content

Commit

Permalink
added address cards
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Apr 6, 2024
1 parent 58785ba commit 3d761d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "react-tabs/style/react-tabs.css";
import { useAccount } from "wagmi";
import { ReputationTokenCard } from "~~/components/rep-tokens/cards/ReputationTokenCard";
import { ReputationTokenGroupCard } from "~~/components/rep-tokens/cards/ReputationTokenGroupCard";
import { StylizedAddressCard } from "~~/components/rep-tokens/cards/internal/StylizedAddressCard";
// import { StylizedAddressCard } from "~~/components/rep-tokens/cards/internal/StylizedAddressCard";
import { AddressCard } from "~~/components/rep-tokens/cards/token-properties/AddressCard";
import { BalanceCard } from "~~/components/rep-tokens/cards/token-properties/BalanceCard";
import { DescriptionCard } from "~~/components/rep-tokens/cards/token-properties/DescriptionCard";
Expand Down Expand Up @@ -53,7 +53,7 @@ export function RepTokensDemo() {
<p className="text-center text-4xl">Multi-Card</p>
<ReputationTokenGroupCard
tokens={tokens}
preChildren={<StylizedAddressCard address={tokens.address} isGroup={true} />}
preChildren={<AddressCard address={tokens.address} isGroup={true} />}
/>
</TabPanel>

Expand All @@ -62,7 +62,7 @@ export function RepTokensDemo() {
<ReputationTokenGroupCard
tokens={tokens}
isBalanceOverlayed={true}
preChildren={<StylizedAddressCard address={tokens.address} isGroup={true} />}
preChildren={<AddressCard address={tokens.address} isGroup={true} />}
/>
</TabPanel>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { Token } from "~~/components/rep-tokens/hooks/Hooks";
type Props = {
token?: Token;
address?: string;
isGroup?: boolean;
};

export const AddressCard = ({ token, address = "" }: Props) => {
return <StylizedAddressCard address={token ? token?.address : address} />;
export const AddressCard = ({ token, address = "", isGroup = false }: Props) => {
return <StylizedAddressCard address={token ? token?.address : address} isGroup={isGroup} />;
};

0 comments on commit 3d761d2

Please sign in to comment.