diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 5ec89fb..33dd6cf 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -9,9 +9,11 @@ import { SidebarLayout } from './SidebarLayout' import { WalletLoader } from './WalletLoader' const routes = [ - { text: 'Create Collection', href: `/collections/create/` }, - { text: 'Collections', href: `/collections/` }, - { text: 'Contract Dashboards', href: `/contracts/` }, + { text: 'Collections', href: `/collections/`, isChild: false }, + { text: 'Create a Collection', href: `/collections/create/`, isChild: true }, + { text: 'My Collections', href: `/collections/myCollections/`, isChild: true }, + { text: 'Collection Actions', href: `/collections/actions/`, isChild: true }, + { text: 'Contract Dashboards', href: `/contracts/`, isChild: false }, ] export const Sidebar = () => { @@ -29,13 +31,15 @@ export const Sidebar = () => { {/* main navigation routes */} - {routes.map(({ text, href }) => ( + {routes.map(({ text, href, isChild }) => ( { > Upload your assets, enter collection metadata and deploy your collection. + + View a list of your collections. + { > Execute messages on a collection. - - Query data from a collection. - ) diff --git a/pages/collections/myCollections.tsx b/pages/collections/myCollections.tsx new file mode 100644 index 0000000..b87b7ab --- /dev/null +++ b/pages/collections/myCollections.tsx @@ -0,0 +1,71 @@ +import { Alert } from 'components/Alert' +import { Conditional } from 'components/Conditional' +import { ContractPageHeader } from 'components/ContractPageHeader' +import { useWallet } from 'contexts/wallet' +import type { NextPage } from 'next' +import { NextSeo } from 'next-seo' +import { useCallback } from 'react' +import { withMetadata } from 'utils/layout' +import { links } from 'utils/links' + +const CollectionList: NextPage = () => { + const wallet = useWallet() + + const renderImages = useCallback(() => { + return ( +
+ + + + + + + + + + + + + + + + +
Collection NameContract AddressCreation Time +
+
+
+
+ Avatar Tailwind CSS Component +
+
+
+
My Collection
+
+
+
+
+ stars1v9fj6mrump74zut0tse65hn4nfzvfdfh4nue0y + {/*
*/} + {/* */} +
{new Date().toDateString()} + +
+
+ ) + }, [wallet.address]) + + return ( +
+ + +
+
+
{renderImages()}
+
+ + You haven't created any collections so far. + +
+ ) +} +export default withMetadata(CollectionList, { center: false })