From 44871ab685982756c07d2eafa4268a51313ad55d Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 28 Jun 2023 18:24:43 +0300 Subject: [PATCH 01/11] Automatically open Studio Survey sidetab upon collection creation --- pages/collections/create.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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) - + From 64246a3ed4bac1748355798699fde33516a64f6a Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 28 Jun 2023 20:59:51 +0300 Subject: [PATCH 02/11] Update sidebar links --- components/Sidebar.tsx | 8 ++++---- utils/links.ts | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 1c0df60..99d6bce 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -44,7 +44,7 @@ export const Sidebar = () => { {/* main navigation routes */} -
+