Skip to content

Commit

Permalink
moved cards to deprecation, organized reputation components
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Apr 6, 2024
1 parent fda859e commit 58785ba
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 66 deletions.
20 changes: 10 additions & 10 deletions packages/nextjs/app/rep-tokens-demo/_components/RepTokensDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import { Tab, TabList, TabPanel, Tabs } from "react-tabs";
import "react-tabs/style/react-tabs.css";
import { useAccount } from "wagmi";
import { ReputationTokenCard } from "~~/components/rep-tokens/cards/stylized-cards/ReputationTokenCard";
import { ReputationTokenGroupCard } from "~~/components/rep-tokens/cards/stylized-cards/ReputationTokenGroupCard";
import { StylizedAddressCard } from "~~/components/rep-tokens/cards/stylized-cards/StylizedAddressCard";
import { AddressCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/AddressCard";
import { BalanceCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/BalanceCard";
import { DescriptionCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/DescriptionCard";
import { ImageCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/ImageCard";
import { MaxMintAmountPerTxCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/MaxMintAmountPerTxCard";
import { NameCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/NameCard";
import { TokenTypeCard } from "~~/components/rep-tokens/cards/stylized-cards/token-properties/TokenTypeCard";
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 { 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";
import { ImageCard } from "~~/components/rep-tokens/cards/token-properties/ImageCard";
import { MaxMintAmountPerTxCard } from "~~/components/rep-tokens/cards/token-properties/MaxMintAmountPerTxCard";
import { NameCard } from "~~/components/rep-tokens/cards/token-properties/NameCard";
import { TokenTypeCard } from "~~/components/rep-tokens/cards/token-properties/TokenTypeCard";
import { useGetRepToken, useRepTokens } from "~~/components/rep-tokens/hooks/Hooks";
import { useScaffoldContract, useScaffoldContractWrite } from "~~/hooks/scaffold-eth";

Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React, { useCallback, useRef, useState } from "react";
import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { ReputationTokenGroupCard } from "./rep-tokens/cards/stylized-cards/ReputationTokenGroupCard";
import { ReputationComponent } from "./rep-tokens/cards/stylized-cards/ReputationTokenGroupCard";
import { ReputationTokenGroupCard } from "./rep-tokens/cards/ReputationTokenGroupCard";
import { ReputationComponent } from "./rep-tokens/cards/ReputationTokenGroupCard";
import { useRepTokens } from "./rep-tokens/hooks/Hooks";
import { useAccount } from "wagmi";
import { Bars3Icon, BugAntIcon } from "@heroicons/react/24/outline";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Token } from "../../hooks/Hooks";
import { BalanceImageOverlay } from "./BalanceImageOverlay";
import { Token } from "../hooks/Hooks";
import { ReputationComponent } from "./ReputationTokenGroupCard";
import { BalanceImageOverlay } from "./internal/BalanceImageOverlay";
import { AddressCard } from "./token-properties/AddressCard";
import { BalanceCard } from "./token-properties/BalanceCard";
import { DescriptionCard } from "./token-properties/DescriptionCard";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TokenGroup } from "../../hooks/Hooks";
import { TokenGroup } from "../hooks/Hooks";
import { ReputationTokenCard } from "./ReputationTokenCard";

export interface TokenCardInternalProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Color } from "./Stylized";
import { StylizedBalanceCard } from "./StylizedBalanceCard";
import { StylizedImageCard } from "./StylizedImageCard";
import { Color } from "./deprecated/Stylized";

type BalanceProps = {
balance: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import { Color } from "./Stylized";
import { Color } from "./deprecated/Stylized";

export interface ImageCardPropsInternal {
src: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Token } from "../../../hooks/Hooks";
import { ReputationComponent } from "../../ReputationTokenGroupCard";
import { BalanceImageOverlay } from "../BalanceImageOverlay";
import { ReputationComponent } from "../ReputationTokenGroupCard";
import { StylizedAddressCard } from "../StylizedAddressCard";
import { StylizedBalanceCard } from "../StylizedBalanceCard";
import { StylizedImageCard } from "../StylizedImageCard";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedAddressCard } from "../StylizedAddressCard";
import { StylizedAddressCard } from "../internal/StylizedAddressCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedBalanceCard } from "../StylizedBalanceCard";
import { StylizedBalanceCard } from "../internal/StylizedBalanceCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedStringCard } from "../StylizedStringCard";
import { StylizedStringCard } from "../internal/StylizedStringCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedImageCard } from "../StylizedImageCard";
import { StylizedImageCard } from "../internal/StylizedImageCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedStringCard } from "../StylizedStringCard";
import { StylizedStringCard } from "../internal/StylizedStringCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedStringCard } from "../StylizedStringCard";
import { StylizedStringCard } from "../internal/StylizedStringCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StylizedStringCard } from "../StylizedStringCard";
import { StylizedStringCard } from "../internal/StylizedStringCard";
import { Token } from "~~/components/rep-tokens/hooks/Hooks";

type Props = {
Expand Down
41 changes: 0 additions & 41 deletions packages/nextjs/components/rep-tokens/types/Types.tsx

This file was deleted.

0 comments on commit 58785ba

Please sign in to comment.