Skip to content

Commit 3d31b40

Browse files
committed
display gas price indicator when the user connects
1 parent 44e747c commit 3d31b40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/[locale]/10years/_components/NFTMintCard/Mint.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Button } from "@/components/ui/buttons/Button"
1010
import MintError from "./views/MintError"
1111
import MintSuccess from "./views/MintSuccess"
1212
import Connected from "./Connected"
13+
import GasPriceDisplay from "./GasPriceDisplay"
1314

1415
import { useNetworkContract } from "@/hooks/useNetworkContract"
1516
import { getErrorMessage } from "@/lib/torch"
@@ -79,6 +80,8 @@ export default function Mint({ address }: { address: Address }) {
7980

8081
return (
8182
<div className="flex flex-col items-center justify-center space-y-6">
83+
<GasPriceDisplay className="w-full" />
84+
8285
{isSupportedNetwork && (
8386
<>
8487
<Button

app/[locale]/10years/_components/NFTMintCard/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import CountDown from "../CountDown"
1111

1212
import Connection from "./Connection"
1313
import GasFeeInformation from "./GasFeeInformation"
14-
import GasPriceDisplay from "./GasPriceDisplay"
1514

1615
import Curved10YearsText from "@/public/images/10-year-anniversary/10y-curved-heading.svg"
1716

@@ -119,8 +118,6 @@ const NFTMintCard = ({ className }: NFTMintCardProps) => {
119118

120119
<GasFeeInformation />
121120

122-
<GasPriceDisplay />
123-
124121
<Connection />
125122
</>
126123
)}

0 commit comments

Comments
 (0)