diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d05870..e6bae3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### [3.1.1](https://github.com/ElvenTools/elven-tools-dapp/releases/tag/v3.1.1) (2022-08-13) +- better errors catching when API is down +- fixes in displaying the numeric values +- fixes in memo usage + ### [3.1.0](https://github.com/ElvenTools/elven-tools-dapp/releases/tag/v3.1.0) (2022-08-06) - dependencies updates (erdjs libs, nextjs and others) - small adjustments in the code diff --git a/components/Hero.tsx b/components/Hero.tsx index 82bd69f..a3cda16 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -26,6 +26,9 @@ export const Hero = () => { type: SCQueryType.STRING, }); + const minted = + collectionSize && totalTokensLeft ? collectionSize - totalTokensLeft : 0; + return ( { }} > { } /> diff --git a/components/MainLayout.tsx b/components/MainLayout.tsx index 3a7eb6f..872a785 100644 --- a/components/MainLayout.tsx +++ b/components/MainLayout.tsx @@ -1,32 +1,29 @@ import { Container, Box } from '@chakra-ui/react'; -import { FC, memo, PropsWithChildren } from 'react'; +import { FC, PropsWithChildren } from 'react'; import { MetaHead, MetaHeadProps } from './MetaHead'; import { Footer } from './Footer'; -export const MainLayout: FC> = memo( - ({ children, metaTitle, metaDescription, metaImage, metaUrl }) => { - return ( - <> - - - - {children} - - -