Skip to content

Commit

Permalink
Pimpup
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Dec 12, 2023
1 parent 1430569 commit 9948cc1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/components/inputs/RadioBoxesInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface RadioBoxOption {
icon?: React.ReactNode;
disabled?: boolean;
}

export const RadioBoxesInput = <TParent,>({
name,
label,
Expand Down
9 changes: 6 additions & 3 deletions packages/nextjs/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { IconEthereum, IconGnosis, IconPolygon } from "./styles/Icons";
import { BitcoinIcon } from "./components/assets/BitcoinIcon";
import { RadioBoxOption } from "./components/inputs/RadioBoxesInput";
import { IconBitcoin, IconDollar, IconEthereum, IconGnosis, IconPolygon } from "./styles/Icons";
import { CurrencyDollarIcon } from "@heroicons/react/24/outline";

export const defaultPage = "registration";

Expand Down Expand Up @@ -174,13 +177,13 @@ export const PaymentOptions = [
title: "Debit or Credit",
subtitle: "Via stripe",
value: "fiat",
icon: IconPolygon,
icon: IconDollar,
},
{
title: "DAI or USDC",
subtitle: "Stablecoin",
value: "crypto",
icon: IconPolygon,
icon: IconBitcoin,
},
] as const;

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/hooks/scaffold-eth/useTransactor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const useTransactor = (_walletClient?: WalletClient): TransactionFunc =>
}
notification.remove(notificationId);

const blockExplorerTxURL = network ? getBlockExplorerTxLink(network, transactionHash) : "";
const blockExplorerTxURL = network ? getBlockExplorerTxLink(transactionHash, network) : "";

notificationId = notification.loading(
<TxnNotification
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/pages/registration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const RegistrationForm: NextPage = () => {
</div>
) : (
<div className="flex flex-row gap-2">
<CurrencyDollarIcon width={24} />
<CurrencyDollarIcon />
Fiat
</div>
)}
Expand Down
6 changes: 6 additions & 0 deletions packages/nextjs/styles/Icons.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { CurrencyDollarIcon } from "@heroicons/react/24/outline";
import { BitcoinIcon } from "~~/components/assets/BitcoinIcon";

export const AgentIcon = () => (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -95,3 +98,6 @@ export const IconPolygon = (
</defs>
</svg>
);

export const IconDollar = <CurrencyDollarIcon width={24}></CurrencyDollarIcon>;
export const IconBitcoin = <BitcoinIcon width={24}></BitcoinIcon>;

0 comments on commit 9948cc1

Please sign in to comment.