Skip to content

Commit

Permalink
Merge pull request #260 from datacite/fix-claim-button
Browse files Browse the repository at this point in the history
fair vis release 1 - fixed claim button styles
  • Loading branch information
bklaing2 authored Mar 14, 2023
2 parents 67d26aa + f3099e8 commit c30efc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Claim/Claim.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.claimButton:hover {
.claimDisabled:hover {
color: #1abc9c;
}
9 changes: 4 additions & 5 deletions src/components/Claim/Claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const Claim: React.FunctionComponent<Props> = ({ doi_id }) => {
return null

if (!user){
return <Button bsStyle='primary' className={styles.claimButton} disabled title="Sign in to Add to ORCID record" block>
return <Button bsStyle='primary' className={styles.claimDisabled} disabled title="Sign in to Add to ORCID record" block>
<FontAwesomeIcon icon={faOrcid} /> Add to ORCID Record
</Button>
}
Expand Down Expand Up @@ -219,16 +219,16 @@ const Claim: React.FunctionComponent<Props> = ({ doi_id }) => {
{isClaimed ?
<Button
bsStyle={'warning'}
className="claim"
onClick={onDelete}
block
>
<FontAwesomeIcon icon={faOrcid} /> Remove Claim
</Button>
:
<Button
bsStyle='primary'
onClick={onCreate}
className={styles.claimButton}
block
>
<FontAwesomeIcon icon={faOrcid} /> Add to ORCID Record
</Button>
Expand All @@ -239,8 +239,7 @@ const Claim: React.FunctionComponent<Props> = ({ doi_id }) => {

{!isClaimed && claim.errorMessages && claim.errorMessages.length > 0 && (
<>
<h5>Error</h5>
{claim.errorMessages[0].title}
<p>Error: {claim.errorMessages[0].title}</p>
</>
)}
</>
Expand Down

0 comments on commit c30efc0

Please sign in to comment.