mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
replaced actionablemessage in Import-Token.js (#20147)
* replaced actionablemessage in Import-Token.js --------- Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com> * Use single controller method to add transactions (#20007) * fix: remove unused useMethodData code (#20146) * Remove Snaps execution environment override (#20173) * Used Box from component-library --------- Co-authored-by: António Regadas <apregadas@gmail.com> Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com> Co-authored-by: Matthew Walsh <matthew.walsh@consensys.net> Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net> Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
This commit is contained in:
parent
a10fb75f35
commit
a942459b36
@ -4,14 +4,13 @@ import { I18nContext } from '../../../contexts/i18n';
|
||||
import UrlIcon from '../../../components/ui/url-icon';
|
||||
import Popover from '../../../components/ui/popover';
|
||||
import Button from '../../../components/ui/button';
|
||||
import Box from '../../../components/ui/box';
|
||||
import { Text } from '../../../components/component-library';
|
||||
import ActionableMessage from '../../../components/ui/actionable-message/actionable-message';
|
||||
import { Text, BannerAlert, Box } from '../../../components/component-library';
|
||||
import {
|
||||
TextVariant,
|
||||
FONT_WEIGHT,
|
||||
AlignItems,
|
||||
DISPLAY,
|
||||
Severity,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
|
||||
export default function ImportToken({
|
||||
@ -55,7 +54,10 @@ export default function ImportToken({
|
||||
display={DISPLAY.FLEX}
|
||||
className="import-token"
|
||||
>
|
||||
<ActionableMessage type="danger" message={t('importTokenWarning')} />
|
||||
<BannerAlert
|
||||
severity={Severity.Danger}
|
||||
description={t('importTokenWarning')}
|
||||
/>
|
||||
<UrlIcon
|
||||
url={tokenForImport.iconUrl}
|
||||
className="import-token__token-icon"
|
||||
|
Loading…
Reference in New Issue
Block a user