From 42fd36d4cbefc5ffa48fd319af7269af42e287e6 Mon Sep 17 00:00:00 2001 From: chaojun Date: Mon, 4 Nov 2024 17:28:27 +0800 Subject: [PATCH] fix: disableWeb2Registration, #5008 --- packages/next-common/utils/consts/settings/collectives.js | 1 + packages/next-common/utils/consts/settings/kusama/index.js | 2 +- packages/next-common/utils/consts/settings/polkadot/index.js | 1 - packages/next-common/utils/consts/settings/rococo/index.js | 1 - packages/next-common/utils/consts/settings/westend/index.js | 1 - packages/next/pages/signup.js | 4 ++-- 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/next-common/utils/consts/settings/collectives.js b/packages/next-common/utils/consts/settings/collectives.js index 5034f1c3a9..3d01b1f86e 100644 --- a/packages/next-common/utils/consts/settings/collectives.js +++ b/packages/next-common/utils/consts/settings/collectives.js @@ -98,6 +98,7 @@ const collectives = { link: "https://github.com/polkadot-fellows/RFCs/issues", }, }, + sima: true, ...polkadotThemeVars, }; diff --git a/packages/next-common/utils/consts/settings/kusama/index.js b/packages/next-common/utils/consts/settings/kusama/index.js index 849684b362..52f4ca6562 100644 --- a/packages/next-common/utils/consts/settings/kusama/index.js +++ b/packages/next-common/utils/consts/settings/kusama/index.js @@ -100,7 +100,7 @@ const kusama = { cancelReferendum: true, killReferendum: true, }, - disableWeb2Registration: true, + sima: true, }; export default kusama; diff --git a/packages/next-common/utils/consts/settings/polkadot/index.js b/packages/next-common/utils/consts/settings/polkadot/index.js index 86e12edcd1..627522c221 100644 --- a/packages/next-common/utils/consts/settings/polkadot/index.js +++ b/packages/next-common/utils/consts/settings/polkadot/index.js @@ -96,7 +96,6 @@ const polkadot = { cancelReferendum: true, killReferendum: true, }, - disableWeb2Registration: true, sima: true, }; diff --git a/packages/next-common/utils/consts/settings/rococo/index.js b/packages/next-common/utils/consts/settings/rococo/index.js index ba763642da..37426d46d1 100644 --- a/packages/next-common/utils/consts/settings/rococo/index.js +++ b/packages/next-common/utils/consts/settings/rococo/index.js @@ -86,7 +86,6 @@ const rococo = { cancelReferendum: true, killReferendum: true, }, - disableWeb2Registration: true, sima: true, }; diff --git a/packages/next-common/utils/consts/settings/westend/index.js b/packages/next-common/utils/consts/settings/westend/index.js index 8f9e1fdccd..e700b0965a 100644 --- a/packages/next-common/utils/consts/settings/westend/index.js +++ b/packages/next-common/utils/consts/settings/westend/index.js @@ -54,7 +54,6 @@ const westend = { cancelReferendum: true, killReferendum: true, }, - disableWeb2Registration: true, sima: true, }; diff --git a/packages/next/pages/signup.js b/packages/next/pages/signup.js index 373c4c0396..e8c4e3f24d 100644 --- a/packages/next/pages/signup.js +++ b/packages/next/pages/signup.js @@ -84,8 +84,8 @@ export default function Signup() { const isMounted = useMountedState(); const { countdown, counting: emailSent, startCountdown } = useCountdown(3); const setUser = useSetUser(); - const { disableWeb2Registration } = useChainSettings(); - const disabledForm = !!disableWeb2Registration; + const { sima } = useChainSettings(); + const disabledForm = !!sima; if (emailSent && countdown === 0) { router.replace("/");