Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced actionablemessage in Import-Token.js #20147

Merged
merged 9 commits into from
Jul 25, 2023
10 changes: 6 additions & 4 deletions ui/pages/swaps/import-token/import-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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"
Expand Down
Loading