Skip to content

Commit

Permalink
Only display the profile for now so you can see what you have
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Aug 12, 2024
1 parent 23c7150 commit 46cf621
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 61 deletions.
28 changes: 26 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
"use client";

import { Collection } from "@/components/collection-page/Collection";
import MarketplaceProvider from "@/hooks/useMarketplaceContext";

import { ProfileSection } from "@/components/profile-page/Profile";
import { client } from "@/consts/client";
import { Box, Flex, Heading } from "@chakra-ui/react";
import { useEffect } from "react";
import { useActiveAccount, useConnectModal } from "thirdweb/react";

const Page = () => {
const account = useActiveAccount();
const { connect } = useConnectModal();
useEffect(() => {
if (!account) {
connect({ client });
}
}, [account, connect]);
if (!account)
return (
<Box>
<Flex>
<Heading m="auto">Log in to continue</Heading>
</Flex>
</Box>
);
return <ProfileSection address={account.address} />;
};

export default function CollectionPage() {
return (
<MarketplaceProvider
chainId="98985"
contractAddress="0xbcA5Ebd414b7c695A8db400Df231fA2A35bbD441"
>
<Collection />
<Page />
</MarketplaceProvider>
);
}
30 changes: 0 additions & 30 deletions src/app/profile/[addressOrENS]/page.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions src/app/profile/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/collection-page/AllNftsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function AllNftsGrid() {
getNFTs1155,
{
contract: nftContract,
start: currentPageIndex == 0 ? 0 : pages[currentPageIndex].start,
start: currentPageIndex == 0 ? 0 :pages[currentPageIndex].start,
count: currentPageIndex == 0 ? 0 : pages[currentPageIndex].count,
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile-page/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function ProfileSection(props: Props) {
</TabList>
</Tabs>
<Link
href={`/collection/${selectedCollection.chain.id}/${selectedCollection.address}`}
href={`https://testnet-explorer.superposition.so/token/0xbcA5Ebd414b7c695A8db400Df231fA2A35bbD441`}
color="gray"
>
View collection <ExternalLinkIcon mx="2px" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function Navbar() {
href="/"
_hover={{ textDecoration: "none" }}
>
<Image src="/superposition.svg" />
<Image src="/supermarket.svg" width={20} height={20}/>
</Heading>
</Box>
<Box display={{ lg: "block", base: "none" }}>
Expand Down

0 comments on commit 46cf621

Please sign in to comment.