-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement SPK rewards tooltip (#2202)
Co-authored-by: Mark Hinschberger <[email protected]>
- Loading branch information
Showing
15 changed files
with
203 additions
and
34 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Trans } from '@lingui/macro'; | ||
|
||
import { Link } from '../primitives/Link'; | ||
import { TextWithTooltip } from '../TextWithTooltip'; | ||
|
||
export const SpkAirdropTooltip = () => { | ||
return ( | ||
<TextWithTooltip | ||
wrapperProps={{ ml: 2 }} | ||
color="warning.main" | ||
iconSize={20} | ||
icon={<image href="/icons/other/spark.svg" width={25} height={25} />} | ||
> | ||
<> | ||
<Trans> | ||
{`This asset is eligible for SPK incentive program. Aave Labs does not | ||
guarantee the program and accepts no liability.\n`} | ||
</Trans> | ||
<br /> | ||
<br /> | ||
<Trans>{'Learn more about the SPK rewards'}</Trans>{' '} | ||
<Link | ||
href="https://forum.sky.money/t/spark-proposal-for-integrations-into-aave/25005" | ||
sx={{ textDecoration: 'underline' }} | ||
variant="caption" | ||
color="text.secondary" | ||
> | ||
{'here'} | ||
</Link>{' '} | ||
<Trans>{'and about SPK program'}</Trans>{' '} | ||
<Link | ||
href="https://docs.spark.fi/rewards/spk-token#what-is-the-spk-pre-farming-airdrop" | ||
sx={{ textDecoration: 'underline' }} | ||
variant="caption" | ||
color="text.secondary" | ||
> | ||
{'here'} | ||
</Link> | ||
{'.'} | ||
</> | ||
</TextWithTooltip> | ||
); | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d241068
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit was deployed on ipfs
d241068
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit was deployed on ipfs