diff --git a/pdf-ui/CHANGELOG.md b/pdf-ui/CHANGELOG.md index 1a625aa..e989bb3 100644 --- a/pdf-ui/CHANGELOG.md +++ b/pdf-ui/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 As a minor extension, we also keep a semantic version for the `UNRELEASED` changes. +## [v1.0.7-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.7-beta) 2025-06-30 +- Align Vote link +- Fix: "Verify Yourself to submit" Message Displayed on Already Submitted Proposals #3857 + ## [v1.0.6-beta](https://www.npmjs.com/package/@intersect.mbo/pdf-ui/v/1.0.6-beta) 2025-06-30 - Align Vote link diff --git a/pdf-ui/package.json b/pdf-ui/package.json index 07ecfc2..afc9df5 100644 --- a/pdf-ui/package.json +++ b/pdf-ui/package.json @@ -1,6 +1,6 @@ { "name": "@intersect.mbo/pdf-ui", - "version": "1.0.6-beta", + "version": "1.0.7-beta", "description": "Proposal discussion ui", "main": "./src/index.js", "exports": { diff --git a/pdf-ui/src/pages/ProposedGovernanceActions/SingleGovernanceAction/index.jsx b/pdf-ui/src/pages/ProposedGovernanceActions/SingleGovernanceAction/index.jsx index ea13d3e..e0c993e 100644 --- a/pdf-ui/src/pages/ProposedGovernanceActions/SingleGovernanceAction/index.jsx +++ b/pdf-ui/src/pages/ProposedGovernanceActions/SingleGovernanceAction/index.jsx @@ -697,15 +697,22 @@ const SingleGovernanceAction = ({ id }) => { } */} - - {checkShowValidation(false, walletAPI, user) && ( - - )} - + {!proposal?.attributes?.content?.attributes + ?.prop_submitted && ( + + {checkShowValidation( + false, + walletAPI, + user + ) && ( + + )} + + )} @@ -1116,8 +1123,9 @@ const SingleGovernanceAction = ({ id }) => { mt={2} display='flex' alignItems='flex-end' + gap={2} > - + { ? `Submitted on:` : `Proposed on:`} - - - {proposal?.attributes - ?.content?.attributes - ?.prop_submitted - ? `${formatIsoDate(proposal?.attributes?.content?.attributes?.prop_submission_date)}` - : `${formatIsoDate( - proposal - ?.attributes - ?.createdAt - )}`} - - - {user && - proposal?.attributes - ?.content?.attributes - ?.prop_submitted === - false && - //proposal?.attributes?.prop_submitted && - user?.user?.id?.toString() === - proposal?.attributes?.user_id?.toString() ? ( - { - const balance = - await fetchCurrentWalletBalance(); - if ( - balance >= - 100000.18 - ) { - await loginUserToApp( - { - wallet: walletAPI, - setUser, - setOpenUsernameModal, - callBackFn: - () => { - setOpenGASubmissionDialog( - true - ); - }, - clearStates, - addErrorAlert, - addSuccessAlert, - addChangesSavedAlert, - } - ); - } else { - setOpenAlertDialog( - true - ); - } - }} - > - Submit as Governance - Action - - ) : null} - - - - {proposal?.attributes?.content - ?.attributes?.prop_submitted ? ( - + + {proposal?.attributes?.content + ?.attributes?.prop_submitted + ? `${formatIsoDate(proposal?.attributes?.content?.attributes?.prop_submission_date)}` + : `${formatIsoDate( + proposal?.attributes + ?.createdAt + )}`} + + + + {user && + proposal?.attributes?.content + ?.attributes?.prop_submitted === + false && + //proposal?.attributes?.prop_submitted && + user?.user?.id?.toString() === + proposal?.attributes?.user_id?.toString() ? ( + { + const balance = + await fetchCurrentWalletBalance(); + if ( + balance >= 100000.18 + ) { + await loginUserToApp( + { + wallet: walletAPI, + setUser, + setOpenUsernameModal, + callBackFn: + () => { + setOpenGASubmissionDialog( + true + ); + }, + clearStates, + addErrorAlert, + addSuccessAlert, + addChangesSavedAlert, + } + ); + } else { + setOpenAlertDialog( + true + ); + } + }} + > + Submit as Governance Action + + ) : null} + {proposal?.attributes?.content + ?.attributes?.prop_submitted ? ( { > Vote - - ) : null} + ) : null} + { alignItems='flex-end' gap={2} > - + { > Last Edit: - + {formatIsoDate( proposal?.attributes ?.content?.attributes @@ -1258,16 +1247,6 @@ const SingleGovernanceAction = ({ id }) => { - // } onClick={() => handleOpenReviewVersions() }