Skip to content

Commit

Permalink
feat: add ampl faq message (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhan authored Dec 13, 2021
1 parent a9c9d92 commit 468783e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/components/AMPLWarning/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function AMPLWarning({ withInfoPanel }: AMPLWarningProps) {
<p className={classNames('AMPLWarning', { AMPLWarning__text: !withInfoPanel })}>
{intl.formatMessage(messages.amplWarning, {
asset: <b>Ampleforth</b>,
link: (
link1: (
<Link
to="https://docs.aave.com/developers/guides/ampl-asset-listing"
absolute={true}
Expand All @@ -31,6 +31,16 @@ export default function AMPLWarning({ withInfoPanel }: AMPLWarningProps) {
{intl.formatMessage(messages.documentation)}
</Link>
),
link2: (
<Link
to="https://faq.ampleforth.org/lending_and_borrowing"
absolute={true}
inNewWindow={true}
color="secondary"
>
{intl.formatMessage(messages.amplFaq)}
</Link>
),
})}

<style jsx={true}>{staticStyles}</style>
Expand Down
4 changes: 3 additions & 1 deletion src/components/AMPLWarning/messages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { defineMessages } from 'react-intl';

export default defineMessages({
amplWarning: '{asset} is an asset affected by rebasing. Visit the {link} to learn more.',
amplWarning:
'{asset} is an asset affected by rebasing. Visit the {link1} or {link2} to learn more.',
documentation: 'documentation',
amplFaq: "Ampleforth's FAQ",
});

0 comments on commit 468783e

Please sign in to comment.