From a12abfeb81e0d3184af6abe6ae9db00dfd0478a5 Mon Sep 17 00:00:00 2001 From: refined-x Date: Mon, 26 Feb 2024 15:42:17 +0800 Subject: [PATCH 1/9] style: add mint btn --- src/assets/coin-svgrepo-com.svg | 155 ++++++++++++++++++++++++ src/pages/game/_components/GameOver.tsx | 12 ++ 2 files changed, 167 insertions(+) create mode 100644 src/assets/coin-svgrepo-com.svg diff --git a/src/assets/coin-svgrepo-com.svg b/src/assets/coin-svgrepo-com.svg new file mode 100644 index 0000000..0e45b86 --- /dev/null +++ b/src/assets/coin-svgrepo-com.svg @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/game/_components/GameOver.tsx b/src/pages/game/_components/GameOver.tsx index 4fc9665..20da046 100644 --- a/src/pages/game/_components/GameOver.tsx +++ b/src/pages/game/_components/GameOver.tsx @@ -34,6 +34,7 @@ import { Transaction, } from "@solana/web3.js"; import useSolana from "../_utils/useSolana.ts"; +import SBTIcon from "@/assets/coin-svgrepo-com.svg?react"; const VerifyPayloadSchema: borsh.Schema = { struct: { @@ -584,6 +585,17 @@ export const GameOver = ({ [Browse Transaction] )} + {SettlementOver && gameResult === 1 && ( + + )} {(SettlementOver || errorMsg) && ( )} - {SettlementOver && gameResult === 1 && ( - - )} + {SettlementOver && + gameResult === 1 && + (hasSBT ? ( + + ) : ( + + ))} {(SettlementOver || errorMsg) && (