Skip to content

Commit

Permalink
add blobert to account page, collection list style
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeardEth committed Feb 22, 2024
1 parent 9d7379b commit 98f2459
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/public/collections/blobert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/_components/CollectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const CollectionCard = ({ collection }: Props) => {
alt={collection.name}
width={50}
height={50}
className="rounded-full"
className="w-24 rounded-full"
/>
)}
<div className="flex flex-grow justify-between pl-4">
Expand Down
23 changes: 23 additions & 0 deletions apps/nextjs/src/app/user/[address]/blobert/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Suspense } from "react";
import { LoadingSkeletonGrid } from "@/app/_components/LoadingSkeletonGrid";
import L2ERC721Table from "@/app/collection/[id]/(list)/L2ERC721Table";
import { SUPPORTED_L2_CHAIN_ID } from "@/constants/env";

import { Collections, getCollectionAddresses } from "@realms-world/constants";

export default async function Page({
params,
}: {
params: { address: string };
}) {
return (
<Suspense fallback={<LoadingSkeletonGrid />}>
<L2ERC721Table
contractAddress={
getCollectionAddresses(Collections.BLOBERT)[SUPPORTED_L2_CHAIN_ID]!
}
ownerAddress={params.address}
/>
</Suspense>
);
}

0 comments on commit 98f2459

Please sign in to comment.