diff --git a/package.json b/package.json index 7383a1e..484567c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "graphql-request": "^5.1.0", "lodash": "^4.17.21", "lodash.merge": "^4.6.2", + "millify": "^6.1.0", "ms": "^2.1.3", "numeral": "^2.0.6", "polished": "^4.2.2", diff --git a/src/components/DynamicWrapper/index.tsx b/src/components/DynamicWrapper/index.tsx index 2988b6d..fa98876 100644 --- a/src/components/DynamicWrapper/index.tsx +++ b/src/components/DynamicWrapper/index.tsx @@ -7,6 +7,7 @@ const Uploader = lazy(() => import('@/pages/Uploader')) const Manager = lazy(() => import('@/pages/Manage')) const Auction = lazy(() => import('@/pages/Auction')) const Mint = lazy(() => import('@/pages/Mint')) +const MyCollections = lazy(() => import('@/pages/MyCollections')) export default function DynamicWrapper({ identifier }: { identifier: string }) { const component = useMemo(() => { @@ -25,6 +26,8 @@ export default function DynamicWrapper({ identifier }: { identifier: string }) { return case 'mint': return + case 'myCollections': + return default: return <> } diff --git a/src/components/Errors/ErrorWrapper/index.tsx b/src/components/Errors/ErrorWrapper/index.tsx index 0c63fc4..b0d3623 100644 --- a/src/components/Errors/ErrorWrapper/index.tsx +++ b/src/components/Errors/ErrorWrapper/index.tsx @@ -1,7 +1,7 @@ import styled from 'styled-components/macro' export const ErrorWrapper = styled.div` - width: 50%; + width: 60%; height: 26%; position: absolute; top: 37%; diff --git a/src/constants/pages.ts b/src/constants/pages.ts index 11943fa..6ed498e 100644 --- a/src/constants/pages.ts +++ b/src/constants/pages.ts @@ -1,6 +1,7 @@ import MiyaLogo from 'assets/134321870.png?preset=icon&resize=true' import ExecutableIcon from 'assets/create_new.png?preset=icon&resize=true' import GearIcon from 'assets/executable_gear.png?preset=icon&resize=true' +import FolderOpen from 'assets/folder_open.png?preset=thumbnail&resize=true' import AuctionIcon from 'assets/icon/auction.png?preset=icon&resize=true' import MintIcon from 'assets/launchpad_logo.png?preset=icon&resize=true' import ManageIcon from 'assets/miya_website_logo_2-removebg-preview.png?preset=icon&resize=true' @@ -21,7 +22,7 @@ const Pages: Record = { home: { id: 'home', path: '/about', - label: 'Net Mint', + label: 'Net Explorer', icon: MiyaLogo[0], minSize: { width: 800, @@ -38,6 +39,16 @@ const Pages: Record = { height: 720, }, }, + myCollections: { + id: 'myCollections', + path: '/my-collections', + label: 'My Collections', + icon: FolderOpen[0], + minSize: { + width: 800, + height: 720, + }, + }, launch: { id: 'launch', path: '/launch', diff --git a/src/pages/Mint/Collection/CollectionDetail.tsx b/src/pages/Mint/Collection/CollectionDetail.tsx index fd54f0e..0a8b49a 100644 --- a/src/pages/Mint/Collection/CollectionDetail.tsx +++ b/src/pages/Mint/Collection/CollectionDetail.tsx @@ -25,7 +25,7 @@ import { Spinner } from '@/components/Spinner' import BackButton from '@/pages/Mint/Button/BackButton' import ConnectWalletButton from '@/pages/Mint/Button/ConnectWalletButton' import MintButton from '@/pages/Mint/Button/MintButton' -import { EXPLORER_PAGE_SECTION } from '@/pages/Mint/constants' +import { MINT_PAGE_SECTION } from '@/pages/Mint/constants' import type { Collection } from '@/pages/Mint/types/collection' import { useContractMetadata } from '@/pages/Mint/useContractMetadata' import { useMintWithFee } from '@/pages/Mint/useMintWithFee' @@ -366,7 +366,7 @@ export default function CollectionDetail({ {/* */} - setPageSection(EXPLORER_PAGE_SECTION.COLLECTIONS_SECTION)} /> + setPageSection(MINT_PAGE_SECTION.COLLECTIONS_SECTION)} /> @@ -388,7 +388,7 @@ export default function CollectionDetail({ value={freeMintAmount} onChange={(e) => setFreeMintAmount(Number(e.target.value))} /> -