Skip to content

Commit

Permalink
rename kyc_verified_review to kyc_verified (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 authored Jul 10, 2024
1 parent bd8dbd0 commit 6972845
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function parseTimelineKeyAndValue(timeline, originalValue, modifiedValue) {
return !oldValue && newValue && <span>completed review</span>;
case "reviewer_completed_attestation":
return !oldValue && newValue && <span>completed attestation</span>;
case "kyc_verified_review":
case "kyc_verified":
return !oldValue && newValue && <span>verified KYC/KYB</span>;
case "test_transaction_sent":
return (
Expand Down
21 changes: 7 additions & 14 deletions instances/devhub.near/widget/devhub/entity/proposal/Proposal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ const proposalStatusOptions = [
status: TIMELINE_STATUS.REVIEW,
sponsor_requested_review: false,
reviewer_completed_attestation: false,
kyc_verified_review: false,
kyc_verified: false,
},
},
{
label: "Approved",
value: {
status: TIMELINE_STATUS.APPROVED,
kyc_verified_review: true,
kyc_verified: true,
sponsor_requested_review: true,
reviewer_completed_attestation: false,
},
Expand All @@ -365,7 +365,7 @@ const proposalStatusOptions = [
label: "Approved-Conditionally",
value: {
status: TIMELINE_STATUS.APPROVED_CONDITIONALLY,
kyc_verified_review: true,
kyc_verified: true,
sponsor_requested_review: true,
reviewer_completed_attestation: false,
},
Expand All @@ -390,7 +390,6 @@ const proposalStatusOptions = [
label: "Payment-processing",
value: {
status: TIMELINE_STATUS.PAYMENT_PROCESSING,
kyc_verified_review: true,
kyc_verified: true,
test_transaction_sent: false,
request_for_trustees_created: false,
Expand All @@ -403,7 +402,6 @@ const proposalStatusOptions = [
value: {
status: TIMELINE_STATUS.FUNDED,
trustees_released_payment: true,
kyc_verified_review: true,
kyc_verified: true,
test_transaction_sent: true,
request_for_trustees_created: true,
Expand Down Expand Up @@ -1175,23 +1173,19 @@ return (
}
/>
<CheckBox
value={
updatedProposalStatus.value.kyc_verified_review
}
value={updatedProposalStatus.value.kyc_verified}
label="Sponsor verifies KYC/KYB"
disabled={selectedStatusIndex !== 1}
onClick={(value) =>
setUpdatedProposalStatus((prevState) => ({
...prevState,
value: {
...prevState.value,
kyc_verified_review: value,
kyc_verified: value,
},
}))
}
isChecked={
updatedProposalStatus.value.kyc_verified_review
}
isChecked={updatedProposalStatus.value.kyc_verified}
/>
</div>
</TimelineItems>
Expand Down Expand Up @@ -1466,8 +1460,7 @@ return (
TIMELINE_STATUS.APPROVED_CONDITIONALLY ||
updatedProposalStatus.value.status ===
TIMELINE_STATUS.PAYMENT_PROCESSING) &&
!updatedProposalStatus.value
.kyc_verified_review) ||
!updatedProposalStatus.value.kyc_verified) ||
(!supervisor &&
DecisionStage.includes(
updatedProposalStatus.value.status
Expand Down

0 comments on commit 6972845

Please sign in to comment.