-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show warning indicators for paused assets (#1834)
- Loading branch information
Showing
10 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
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,33 @@ | ||
import { ExclamationIcon } from '@heroicons/react/outline'; | ||
import { Trans } from '@lingui/macro'; | ||
import { Stack, SvgIcon, Tooltip } from '@mui/material'; | ||
|
||
import { PopperComponent } from '../ContentWithTooltip'; | ||
|
||
export const PausedTooltipText = () => { | ||
return ( | ||
<Trans> | ||
This asset has been paused due to a community decision. Supply, withdraw, borrows and repays | ||
are impacted. | ||
</Trans> | ||
); | ||
}; | ||
|
||
export const PausedTooltip = () => { | ||
return ( | ||
<Tooltip | ||
arrow | ||
placement="top" | ||
PopperComponent={PopperComponent} | ||
title={ | ||
<Stack sx={{ py: 4, px: 6 }} spacing={1}> | ||
<PausedTooltipText /> | ||
</Stack> | ||
} | ||
> | ||
<SvgIcon sx={{ fontSize: '20px', color: 'error.main', ml: 2 }}> | ||
<ExclamationIcon /> | ||
</SvgIcon> | ||
</Tooltip> | ||
); | ||
}; |
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
72b9ff8
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
72b9ff8
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