diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 2f6e2ab..ca0f439 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -81,6 +81,7 @@ const CollectionCreationPage: NextPage = () => { baseFactory: baseFactoryContract, } = useContracts() const scrollRef = useRef(null) + const sidetabRef = useRef(null) const vendingFactoryMessages = useMemo( () => vendingFactoryContract?.use(VENDING_FACTORY_ADDRESS), @@ -1107,8 +1108,11 @@ const CollectionCreationPage: NextPage = () => { vendingMinterContractAddress !== null || openEditionMinterDetails?.openEditionMinterContractAddress || isMintingComplete - ) + ) { scrollRef.current?.scrollIntoView({ behavior: 'smooth' }) + // eslint-disable-next-line @typescript-eslint/no-unsafe-call + if (sidetabRef.current) sidetabRef.current.open() + } }, [vendingMinterContractAddress, openEditionMinterDetails?.openEditionMinterContractAddress, isMintingComplete]) useEffect(() => { @@ -1600,7 +1604,14 @@ const CollectionCreationPage: NextPage = () => { Mint & Add Token(s) - +