-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
408 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
apps/web/src/app/(routes)/lounge/[transactionHash]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"use client"; | ||
import Image from "next/image"; | ||
import { redirect } from "next/navigation"; | ||
import { useEffect } from "react"; | ||
|
||
import { api } from "~/utils/api"; | ||
|
||
interface PageProps { | ||
params: { transactionHash: string }; | ||
} | ||
|
||
/** | ||
* Page used when waiting for a deposit transaction to be detected by the bridge | ||
*/ | ||
export default function Page({ params: { transactionHash } }: PageProps) { | ||
console.log(transactionHash); | ||
const { data: hasBridgeRequestBeenIndexed } = | ||
api.bridgeRequest.getHasBrigeRequestIndexed.useQuery( | ||
{ | ||
transactionHash, | ||
}, | ||
{ refetchInterval: 1000 } | ||
); | ||
|
||
useEffect(() => { | ||
if (hasBridgeRequestBeenIndexed) { | ||
redirect("/lounge"); | ||
} | ||
}, [hasBridgeRequestBeenIndexed]); | ||
|
||
return ( | ||
<Image | ||
alt="Bridge loading animation" | ||
className="fixed inset-0 h-screen w-screen object-cover" | ||
height={3000} | ||
src="/medias/bridge_animation.gif" | ||
width={3000} | ||
/> | ||
); | ||
} |
119 changes: 0 additions & 119 deletions
119
apps/web/src/app/(routes)/lounge/_components/NftTransferCard.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.