Skip to content

Commit

Permalink
chore: fix label in base profile and remove tab index (sonarcloud adv…
Browse files Browse the repository at this point in the history
…ice)
  • Loading branch information
dmijatovic committed Nov 30, 2023
1 parent ad7e75b commit 3780ff7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions frontend/components/layout/ConfirmDeleteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default function ConfirmDeleteModal({
padding: '1rem 1.5rem',
}}>
<Button
tabIndex={1}
onClick={onCancel}
color="secondary"
sx={{
Expand All @@ -77,7 +76,6 @@ export default function ConfirmDeleteModal({
Cancel
</Button>
<Button
tabIndex={0}
type="button"
variant="contained"
color="error"
Expand Down
5 changes: 2 additions & 3 deletions frontend/components/user/settings/BasicProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ export default function BasicProfile({orcid}:BasicProfileProps) {
<a href={`/profile/${orcid}/software`} className="flex gap-2 items-center" target='_blank'>
Enabled <LaunchIcon sx={{width:'1rem'}}/>
</a>
: <a href="/documentation/users/user-settings/#public-profile" target='_blank'>
Disabled <LaunchIcon sx={{width:'1rem'}}/>
</a>
:
<span>Disabled (<a href="/documentation/users/user-settings/#public-profile" target='_blank'>how to enable? <LaunchIcon sx={{width:'1rem'}}/></a>)</span>
}
</div>
</>
Expand Down
2 changes: 0 additions & 2 deletions frontend/components/user/settings/UserAgreementModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export default function UserAgrementModal() {
padding: '1rem 1.5rem',
}}>
<Button
tabIndex={1}
// on cancel go back to previous page
onClick={()=>router.back()}
color="secondary"
Expand All @@ -175,7 +174,6 @@ export default function UserAgrementModal() {
</Button>
<Button
form="user-agreement-form"
tabIndex={0}
disabled={!(agreeTerms && privacyStatement)}
type="submit"
variant="contained"
Expand Down

0 comments on commit 3780ff7

Please sign in to comment.