From e2437a02caa75a0bfd2c597cc0f14e529401b926 Mon Sep 17 00:00:00 2001 From: starknetdev Date: Mon, 9 Oct 2023 13:18:40 +0100 Subject: [PATCH] mint lords button --- ui/src/app/components/navigation/Header.tsx | 20 ++++++++++++--- ui/src/app/lib/burner.tsx | 27 +++++++++++---------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/ui/src/app/components/navigation/Header.tsx b/ui/src/app/components/navigation/Header.tsx index c2f864f60..b796d37f4 100644 --- a/ui/src/app/components/navigation/Header.tsx +++ b/ui/src/app/components/navigation/Header.tsx @@ -1,4 +1,4 @@ -import { useRef } from "react"; +import { useRef, useState } from "react"; import { useBalance, useAccount, useConnectors } from "@starknet-react/core"; import { useContracts } from "@/app/hooks/useContracts"; import useAdventurerStore from "@/app/hooks/useAdventurerStore"; @@ -61,6 +61,8 @@ export default function Header({ multicall, mintLords }: HeaderProps) { const displayCartButtonRef = useRef(null); const displayHistoryButtonRef = useRef(null); + const [showLordsMint, setShowLordsMint] = useState(false); + return (
@@ -87,12 +89,22 @@ export default function Header({ multicall, mintLords }: HeaderProps) {