From 0666a3806972940e261cc5d6cf376c701c577483 Mon Sep 17 00:00:00 2001 From: Rashmi-278 Date: Fri, 24 May 2024 15:27:55 +0530 Subject: [PATCH] add auth form button --- .../RegistrationForm/RegistrationForm.js | 127 ++++++++++-------- 1 file changed, 72 insertions(+), 55 deletions(-) diff --git a/daostar-website/src/components/Register/RegistrationForm/RegistrationForm.js b/daostar-website/src/components/Register/RegistrationForm/RegistrationForm.js index 0a50026..e44f9ad 100644 --- a/daostar-website/src/components/Register/RegistrationForm/RegistrationForm.js +++ b/daostar-website/src/components/Register/RegistrationForm/RegistrationForm.js @@ -422,7 +422,7 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => { const memberRole = await contract.MEMBER_ROLE(); const isMember = await contract.hasRole(memberRole, address); - if (!isMember) throw new Error("You have no authorization. Click hereto get added to the schema allowlist"); + if (!isMember) throw new Error(`You have no authorization. Request authorization to get added to the schema allowlist`); const eas = new EAS("0x4200000000000000000000000000000000000021"); eas.connect(signer); @@ -455,7 +455,7 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => { setShowEASRegisterDialog(false); }; - + const EthNetworksSelect = ( <> @@ -535,10 +535,10 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Contract address - +
} @@ -577,13 +577,13 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
- Framework - - - -
- } labelFor="framework" fill> +
+ Framework + + + +
+ } labelFor="framework" fill> {FrameworkSelect} @@ -593,10 +593,10 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Members URI - +
} labelFor="members-uri" fill> @@ -612,11 +612,11 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Activity Log URI - + position="auto"> +
} @@ -634,10 +634,10 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Proposals URI - +
} labelFor="proposals-uri" fill> @@ -652,10 +652,10 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Issuers URI - +
} labelFor="proposals-uri" fill> @@ -671,10 +671,10 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
+
Contract registry URI (optional) - +
} @@ -745,13 +745,13 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
- DAO Network ID - - - -
- }> +
+ DAO Network ID + + + +
+ }> {
- DAO URI - - - -
- } labelFor="dao-uri" fill> +
+ DAO URI + + + +
+ } labelFor="dao-uri" fill> {
+
DAO Contract Address - +
} @@ -821,13 +821,13 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
- Issuer Name - - - -
- } labelFor="issuer-name" fill> +
+ Issuer Name + + + +
+ } labelFor="issuer-name" fill> {
+
Issuer Description - +
} @@ -866,16 +866,33 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => { margin: "40px 24px", }} > - +
+ + +