Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from cardano2vn/refactor
Browse files Browse the repository at this point in the history
feat: update Aiken version and enhance mint result display with trans…
tidvn authored Nov 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 83fee92 + 563a936 commit 0aa1f38
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
@@ -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
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>
);

0 comments on commit 0aa1f38

Please sign in to comment.