From fc5e1c8e6b301ed556b7833f90cba6c37a2218da Mon Sep 17 00:00:00 2001 From: Rashmi-278 Date: Tue, 22 Aug 2023 02:20:29 +0530 Subject: [PATCH 1/4] fix edit form --- .../Register/RegistrationReceived/RegistrationReceived.js | 4 +--- .../src/components/RegistrationCard/RegistrationCard.js | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/daostar-website/src/components/Register/RegistrationReceived/RegistrationReceived.js b/daostar-website/src/components/Register/RegistrationReceived/RegistrationReceived.js index 64f4b8a5..a866c2aa 100644 --- a/daostar-website/src/components/Register/RegistrationReceived/RegistrationReceived.js +++ b/daostar-website/src/components/Register/RegistrationReceived/RegistrationReceived.js @@ -40,9 +40,7 @@ const RegistrationReceived = ({ "summonRegistration", [...regData] ); - if (daoContractNetwork === 'optimism-goerli') { - daoContractNetwork = 'optimismGoerli' -} + return ( diff --git a/daostar-website/src/components/RegistrationCard/RegistrationCard.js b/daostar-website/src/components/RegistrationCard/RegistrationCard.js index 8d764213..5c345f5d 100644 --- a/daostar-website/src/components/RegistrationCard/RegistrationCard.js +++ b/daostar-website/src/components/RegistrationCard/RegistrationCard.js @@ -73,6 +73,7 @@ const RegistrationCard = ({ {cardScreen === 'UPDATED' && ( )} From 977e695bebd7d67ff7b7a1cd337c892bfd3ffae3 Mon Sep 17 00:00:00 2001 From: Rashmi-278 Date: Tue, 22 Aug 2023 02:42:35 +0530 Subject: [PATCH 2/4] fix edit form --- .../src/components/RegistrationCard/RegistrationCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daostar-website/src/components/RegistrationCard/RegistrationCard.js b/daostar-website/src/components/RegistrationCard/RegistrationCard.js index 5c345f5d..f1bf84b5 100644 --- a/daostar-website/src/components/RegistrationCard/RegistrationCard.js +++ b/daostar-website/src/components/RegistrationCard/RegistrationCard.js @@ -73,7 +73,7 @@ const RegistrationCard = ({ {cardScreen === 'UPDATED' && ( )} From 75b0020955d178c4186a9423882db207847d151c Mon Sep 17 00:00:00 2001 From: Rashmi-278 Date: Tue, 22 Aug 2023 03:01:56 +0530 Subject: [PATCH 3/4] add id --- .../DisplayRegistration.js | 230 +++++++++--------- .../RegistrationCard/RegistrationCard.js | 2 +- 2 files changed, 116 insertions(+), 116 deletions(-) diff --git a/daostar-website/src/components/RegistrationCard/DisplayRegistration/DisplayRegistration.js b/daostar-website/src/components/RegistrationCard/DisplayRegistration/DisplayRegistration.js index dcbcd50c..aaef4ef2 100644 --- a/daostar-website/src/components/RegistrationCard/DisplayRegistration/DisplayRegistration.js +++ b/daostar-website/src/components/RegistrationCard/DisplayRegistration/DisplayRegistration.js @@ -1,124 +1,124 @@ -import { Button, Divider} from '@blueprintjs/core'; -import React, { Fragment } from 'react'; -import { Link } from 'react-router-dom'; -import EtherscanLink from './EtherscanLink/EtherscanLink'; -import URILink from './URILink/URILink'; +import { Button, Divider } from "@blueprintjs/core"; +import React, { Fragment } from "react"; +import { Link } from "react-router-dom"; +import EtherscanLink from "./EtherscanLink/EtherscanLink"; +import URILink from "./URILink/URILink"; -const IPFS_GATEWAY = `https://ipfs.io/ipfs` +const IPFS_GATEWAY = `https://ipfs.io/ipfs`; const getHttpDaoURI = (daoURI) => { - if (daoURI.includes(`ipfs://`)) { - const uri_hash = daoURI.substring(7); - return `${IPFS_GATEWAY}/${uri_hash}` - } - return daoURI; + if (daoURI.includes(`ipfs://`)) { + const uri_hash = daoURI.substring(7); + return `${IPFS_GATEWAY}/${uri_hash}`; + } + return daoURI; }; const DisplayRegistration = ({ - id, - network, - onClickEdit, - contractAddress, - managerAddress, - daoURI, - description, - name, - standalone, - membersURI, - activityLogURI, - issuersURI, - proposalsURI, - governanceURI + id, + network, + onClickEdit, + contractAddress, + managerAddress, + daoURI, + description, + name, + standalone, + membersURI, + activityLogURI, + issuersURI, + proposalsURI, + governanceURI, }) => { + const httpDaoURI = getHttpDaoURI(daoURI); + if (network === "optimism-goerli") { + network = "optimismGoerli"; + } - const httpDaoURI = getHttpDaoURI(daoURI); - if (network === 'optimism-goerli') { - network = 'optimismGoerli' - } - - return ( - - {standalone === true ? ( -

{name}

- ) : ( - -

{name}

- - )} - {standalone === true && ( -