-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replaced middleware with app router
- Loading branch information
1 parent
6bb3841
commit 5be079a
Showing
2 changed files
with
12 additions
and
31 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
apps/arkmarket/src/app/[collectionAddress]/[tokenId]/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,12 @@ | ||
import { notFound } from "next/navigation"; | ||
import { ChainId, CollectionAddresses } from "~/config/homepage"; | ||
import TokenPage from "~/app/token/[contractAddress]/[tokenId]/page"; | ||
|
||
export default function TokenPageRoute({ params }) { | ||
const collection = CollectionAddresses[params.collectionAddress]; | ||
Check failure on line 6 in apps/arkmarket/src/app/[collectionAddress]/[tokenId]/page.tsx GitHub Actions / lint
Check failure on line 6 in apps/arkmarket/src/app/[collectionAddress]/[tokenId]/page.tsx GitHub Actions / lint
|
||
if (undefined === collection) { | ||
return notFound() | ||
} | ||
const address = collection[ChainId.SN_MAIN]; | ||
Check failure on line 10 in apps/arkmarket/src/app/[collectionAddress]/[tokenId]/page.tsx GitHub Actions / lint
|
||
return TokenPage({ params: { contractAddress: address, tokenId: params.tokenId } }) | ||
} |
This file was deleted.
Oops, something went wrong.