diff --git a/src/app/page.tsx b/src/app/page.tsx
index 72e7b37..9785b7f 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -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 (
+
+
+ Log in to continue
+
+
+ );
+ return ;
+};
+
export default function CollectionPage() {
return (
-
+
);
}
diff --git a/src/app/profile/[addressOrENS]/page.tsx b/src/app/profile/[addressOrENS]/page.tsx
deleted file mode 100644
index 3d79dac..0000000
--- a/src/app/profile/[addressOrENS]/page.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client";
-
-import { ProfileSection } from "@/components/profile-page/Profile";
-import { useResolveENSAddress } from "@/hooks/useResolveENSAddress";
-import { Box, Text } from "@chakra-ui/react";
-import { notFound } from "next/navigation";
-import { isAddress } from "thirdweb/utils";
-
-export default function PublicProfilePage({
- params,
-}: {
- params: { addressOrENS: string };
-}) {
- const { addressOrENS } = params;
- const isValidEvmAddress = isAddress(addressOrENS);
- const { data: resolvedAddress, isLoading } = useResolveENSAddress({
- text: addressOrENS,
- enabled: !isValidEvmAddress,
- });
- if (isLoading) {
- return (
-
- Loading...
-
- );
- }
- if (!isValidEvmAddress && !resolvedAddress) return notFound();
- const address = isValidEvmAddress ? addressOrENS : resolvedAddress!;
- return ;
-}
diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx
deleted file mode 100644
index 09718ef..0000000
--- a/src/app/profile/page.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client";
-
-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";
-
-export default function ProfilePage() {
- const account = useActiveAccount();
- const { connect } = useConnectModal();
- useEffect(() => {
- if (!account) {
- connect({ client });
- }
- }, [account, connect]);
- if (!account)
- return (
-
-
- Log in to continue
-
-
- );
- return ;
-}
diff --git a/src/components/collection-page/AllNftsGrid.tsx b/src/components/collection-page/AllNftsGrid.tsx
index 819ff5f..007fd77 100644
--- a/src/components/collection-page/AllNftsGrid.tsx
+++ b/src/components/collection-page/AllNftsGrid.tsx
@@ -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,
}
);
diff --git a/src/components/profile-page/Profile.tsx b/src/components/profile-page/Profile.tsx
index 3e2fd2d..70065c9 100644
--- a/src/components/profile-page/Profile.tsx
+++ b/src/components/profile-page/Profile.tsx
@@ -133,7 +133,7 @@ export function ProfileSection(props: Props) {
View collection
diff --git a/src/components/shared/Navbar.tsx b/src/components/shared/Navbar.tsx
index 9bf7362..a63f9af 100644
--- a/src/components/shared/Navbar.tsx
+++ b/src/components/shared/Navbar.tsx
@@ -42,7 +42,7 @@ export function Navbar() {
href="/"
_hover={{ textDecoration: "none" }}
>
-
+