Skip to content

Commit

Permalink
hotfix: passport dashboard put directly in settings view
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek committed Jul 18, 2024
1 parent 1d44e14 commit 10b1b91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.root {
width: 100%;
height: 7.2rem;
height: 6rem;
padding: 0 2.4rem;
display: flex;
align-items: center;
border-radius: $border-radius-16;
background-color: $color-octant-grey3;
margin: 1.6rem 0 1.4rem;
margin: 0.8rem 0 1.4rem;

.avatarsGroup {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
font-weight: $font-weight-bold;
}

.visitDashboard {
font-size: 1rem;
padding: 0;
margin-top: 0.8rem;
}

.buttonsWrapper {
margin-bottom: auto;
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SettingsUniquenessScoreAddresses from 'components/Settings/SettingsUnique
import BoxRounded from 'components/ui/BoxRounded';
import Button from 'components/ui/Button';
import { DELEGATION_MIN_SCORE } from 'constants/delegation';
import { GITCOIN_PASSPORT_CUSTOM_OCTANT_DASHBOARD } from 'constants/urls';
import useCheckDelegation from 'hooks/mutations/useCheckDelegation';
import useRefreshAntisybilStatus from 'hooks/mutations/useRefreshAntisybilStatus';
import useAntisybilStatusScore from 'hooks/queries/useAntisybilStatusScore';
Expand Down Expand Up @@ -209,6 +210,12 @@ const SettingsUniquenessScoreBox = (): ReactNode => {
}
>
<>
<Button
className={styles.visitDashboard}
href={GITCOIN_PASSPORT_CUSTOM_OCTANT_DASHBOARD}
label="Score too low? Visit our Passport dashboard"
variant="link"
/>
<SettingsUniquenessScoreAddresses isFetchingScore={isFetchingScore} />
<div className={styles.buttonsWrapper}>
<Button
Expand Down

0 comments on commit 10b1b91

Please sign in to comment.