Skip to content

Commit

Permalink
feat: update Aiken version and enhance mint result display with trans…
Browse files Browse the repository at this point in the history
…action link
  • Loading branch information
tidvn committed Nov 16, 2024
1 parent d8d449f commit 563a936
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Aiken
uses: aiken-lang/setup-aiken@v1
with:
version: v1.1.0
version: v1.1.6
- name: Build Blueprint
run: |
aiken fmt --check
Expand Down
28 changes: 16 additions & 12 deletions src/app/(app)/dashboard/mint/one/_components/_mint-step/result.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import { Button } from "@/components/ui/button";
import { useMintOneContext } from "../../_context";
import Link from "next/link";
import { appNetwork } from "@/constants";

export default function ResultStep() {
const { stepper, txhash } = useMintOneContext();
const { txhash } = useMintOneContext();

return (
<div className="h-full py-8 px-10 m-auto flex flex-col">
<div className="rounded-md border border-dashed h-full p-2">
<pre>{txhash}</pre>
</div>
<div className="flex justify-end gap-4 mt-6">
<Button
variant="secondary"
onClick={stepper.prev}
disabled={stepper.isFirst}
<div className="flex flex-col items-center justify-center text-white">
<p className="mb-2 text-center text-lg font-semibold">
Mint successful! 🎉
</p>
<p className="mb-4 max-w-md text-center text-sm text-gray-300">
Check your Nft in your Wallet. If it’s not visible, please wait a
moment for the transaction to complete.
</p>
<Link
href={`https://${appNetwork}.cexplorer.io/tx/${txhash}`}
className="mt-4 rounded-lg bg-white px-6 py-2 text-sm font-semibold text-blue-500 shadow-md hover:bg-gray-100"
>
Back
</Button>
View on Cexplorer
</Link>
</div>
</div>
);
Expand Down

0 comments on commit 563a936

Please sign in to comment.