Skip to content

Commit

Permalink
🚸 use button instead of anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
sebipap authored and jgalat committed Oct 26, 2023
1 parent 2bb59dd commit da96e70
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
13 changes: 11 additions & 2 deletions components/VestingInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,18 @@ function VestingInput({ refetch }: Props) {
i18nKey="Not enough EXA for reserve. <1>Get EXA</1>."
components={{
1: (
<a
<button
onClick={openGetEXA}
style={{ fontWeight: 700, textDecoration: 'underline', cursor: 'pointer' }}
style={{
fontWeight: 700,
textDecoration: 'underline',
cursor: 'pointer',
padding: 'unset',
background: 'unset',
border: 'unset',
fontSize: 'unset',
color: 'unset',
}}
/>
),
}}
Expand Down
8 changes: 3 additions & 5 deletions pages/strategies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,9 @@ const Strategies: NextPage = () => {
{ text: t('Basic'), size: 'small' as const },
],
button: (
<a style={{ width: '100%' }}>
<Button fullWidth variant="contained" onClick={openGetEXA}>
{t('Get EXA')}
</Button>
</a>
<Button fullWidth variant="contained" onClick={openGetEXA}>
{t('Get EXA')}
</Button>
),
isNew: true,
},
Expand Down
13 changes: 11 additions & 2 deletions pages/vesting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,18 @@ const Vesting: NextPage = () => {
i18nKey="You can <1>get EXA</1> if you don’t have the required reserve amount."
components={{
1: (
<a
<button
onClick={openGetEXA}
style={{ textDecoration: 'underline', fontWeight: 700, cursor: 'pointer' }}
style={{
fontWeight: 700,
textDecoration: 'underline',
cursor: 'pointer',
padding: 'unset',
background: 'unset',
border: 'unset',
fontSize: 'unset',
color: 'unset',
}}
/>
),
}}
Expand Down

1 comment on commit da96e70

@vercel
Copy link

@vercel vercel bot commented on da96e70 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

exactly-development.vercel.app
app.exact.ly
app.exactly.app
exactly.app
app-git-main.exactly.app

Please sign in to comment.