Skip to content

Commit

Permalink
Merge pull request #1814 from ResearchHub/claim-email
Browse files Browse the repository at this point in the history
[Author Claim] Adding claiming user email
  • Loading branch information
yattias authored Aug 19, 2024
2 parents f986f85 + b435d14 commit dd73a8d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ export default function AuthorClaimCaseCardTargetAuthorSection({
{caseData?.userVerification?.verifiedName || "Not verified"}
{caseData?.userVerification?.isVerified && <VerifiedBadge height={15} width={15} />}
</span>
</div>
</div>
<div className={css(styles.marginBottom)}>
<span className={css(styles.fontGrey)}>{"Email - "}</span>
<span>
{caseData?.userEmail || "N/A"}
</span>
</div>
</div>
<div className={css(styles.userDetails)}>
<div
Expand Down
22 changes: 12 additions & 10 deletions components/AuthorClaimCaseDashboard/AuthorClaimCaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,19 @@ function AuthorClaimModal({
</span>
</div>
</div>
<div>
<div className={css(customModalStyle.checkListHeader)}>
Please verify the following:
{openModalType === AUTHOR_CLAIM_STATUS.APPROVED && (
<div>
<div className={css(customModalStyle.checkListHeader)}>
Please verify the following:
</div>
<ul className={css(customModalStyle.checkList)}>
<li>Paper is open access</li>
<li>
Paper's citation amount reasonably matches external sources
</li>
</ul>
</div>
<ul className={css(customModalStyle.checkList)}>
<li>Paper is open access</li>
<li>
Paper's citation amount reasonably matches external sources
</li>
</ul>
</div>
)}
<div className={css(acceptRejectStyles.buttonContainer)}>
<Button
label={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type CaseData = {
updatedDate: string;
targetPaperTitle?: NullableString;
targetPaperDOI?: NullableString;
providedEmail?: NullableString;
userEmail?: NullableString;
authorship: Authorship | null;
preregistrationUrl?: NullableString;
openDataUrl?: NullableString;
Expand Down Expand Up @@ -119,7 +119,7 @@ export function getCases({
targetAuthorName: target_author_name,
targetPaperTitle: target_paper_title,
targetPaperDOI: target_paper_doi,
providedEmail: resultData.provided_email,
userEmail: resultData.user_email,
preregistrationUrl: preregistration_url,
openDataUrl: open_data_url,
},
Expand Down

0 comments on commit dd73a8d

Please sign in to comment.