mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
UX Icon: updated fa-exclamation-circle (#17879)
This commit is contained in:
parent
1c0ff8a6e8
commit
9f17e2f94b
2
app/_locales/de/messages.json
generated
2
app/_locales/de/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Der Contract könnte Ihr gesamtes Token-Guthaben ohne weitere Benachrichtigung oder Zustimmung ausgeben. Schützen Sie sich, indem Sie eine niedrigere Ausgabenobergrenze festlegen.",
|
"message": "$1 Der Contract könnte Ihr gesamtes Token-Guthaben ohne weitere Benachrichtigung oder Zustimmung ausgeben. Schützen Sie sich, indem Sie eine niedrigere Ausgabenobergrenze festlegen.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Schwach"
|
"message": "Schwach"
|
||||||
|
2
app/_locales/el/messages.json
generated
2
app/_locales/el/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Ο συμβαλλόμενος μπορεί να ξοδέψει ολόκληρο το υπόλοιπο των tokens σας χωρίς περαιτέρω ειδοποίηση ή συγκατάθεση. Προστατέψτε τον εαυτό σας προσαρμόζοντας ένα χαμηλότερο όριο δαπανών.",
|
"message": "$1 Ο συμβαλλόμενος μπορεί να ξοδέψει ολόκληρο το υπόλοιπο των tokens σας χωρίς περαιτέρω ειδοποίηση ή συγκατάθεση. Προστατέψτε τον εαυτό σας προσαρμόζοντας ένα χαμηλότερο όριο δαπανών.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Αδύναμος"
|
"message": "Αδύναμος"
|
||||||
|
2
app/_locales/en/messages.json
generated
2
app/_locales/en/messages.json
generated
@ -4507,7 +4507,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 The contract could spend your entire token balance without further notice or consent. Protect yourself by customizing a lower spending cap.",
|
"message": "$1 The contract could spend your entire token balance without further notice or consent. Protect yourself by customizing a lower spending cap.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Weak"
|
"message": "Weak"
|
||||||
|
2
app/_locales/es/messages.json
generated
2
app/_locales/es/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 El contrato podría gastar todo su saldo de tokens sin previo aviso o consentimiento. Protéjase personalizando un límite de gasto más bajo.",
|
"message": "$1 El contrato podría gastar todo su saldo de tokens sin previo aviso o consentimiento. Protéjase personalizando un límite de gasto más bajo.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Débil"
|
"message": "Débil"
|
||||||
|
2
app/_locales/fr/messages.json
generated
2
app/_locales/fr/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 L’autre partie au contrat peut dépenser la totalité de votre solde de jetons sans préavis et sans demander votre consentement. Protégez-vous en abaissant le plafond des dépenses.",
|
"message": "$1 L’autre partie au contrat peut dépenser la totalité de votre solde de jetons sans préavis et sans demander votre consentement. Protégez-vous en abaissant le plafond des dépenses.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Faible"
|
"message": "Faible"
|
||||||
|
2
app/_locales/hi/messages.json
generated
2
app/_locales/hi/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 अनुबंध आगे की सूचना या सहमति के बिना आपकी संपूर्ण टोकन शेष राशि खर्च कर सकता है। कम खर्च करने की सीमा को समायोजित करके अपनी सुरक्षा करें।",
|
"message": "$1 अनुबंध आगे की सूचना या सहमति के बिना आपकी संपूर्ण टोकन शेष राशि खर्च कर सकता है। कम खर्च करने की सीमा को समायोजित करके अपनी सुरक्षा करें।",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "कमज़ोर"
|
"message": "कमज़ोर"
|
||||||
|
2
app/_locales/id/messages.json
generated
2
app/_locales/id/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Kontrak dapat mempergunakan seluruh saldo token Anda tanpa pemberitahuan atau persetujuan lebih lanjut. Lindungi diri Anda dengan menyesuaikan batas pengeluaran yang lebih rendah.",
|
"message": "$1 Kontrak dapat mempergunakan seluruh saldo token Anda tanpa pemberitahuan atau persetujuan lebih lanjut. Lindungi diri Anda dengan menyesuaikan batas pengeluaran yang lebih rendah.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Lemah"
|
"message": "Lemah"
|
||||||
|
2
app/_locales/ja/messages.json
generated
2
app/_locales/ja/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 このコントラクトは今後、通知や承諾なしにトークン残高全額を使用できます。使用限度をより低い金額にカスタマイズして、自分の身を守りましょう。",
|
"message": "$1 このコントラクトは今後、通知や承諾なしにトークン残高全額を使用できます。使用限度をより低い金額にカスタマイズして、自分の身を守りましょう。",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "弱"
|
"message": "弱"
|
||||||
|
2
app/_locales/ko/messages.json
generated
2
app/_locales/ko/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 계약은 추가 통보나 동의 없이도 남은 토큰 전체를 사용할 수 있습니다. 보호를 위해 최소 지출 한도를 설정하세요.",
|
"message": "$1 계약은 추가 통보나 동의 없이도 남은 토큰 전체를 사용할 수 있습니다. 보호를 위해 최소 지출 한도를 설정하세요.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "약함"
|
"message": "약함"
|
||||||
|
2
app/_locales/pt/messages.json
generated
2
app/_locales/pt/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 O contrato pode gastar todo o seu saldo de tokens sem aviso ou consentimento. Proteja-se personalizando um limite de gastos menor.",
|
"message": "$1 O contrato pode gastar todo o seu saldo de tokens sem aviso ou consentimento. Proteja-se personalizando um limite de gastos menor.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Fraca"
|
"message": "Fraca"
|
||||||
|
2
app/_locales/ru/messages.json
generated
2
app/_locales/ru/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Контракт может потратить весь ваш баланс токенов без дополнительного уведомления или согласия. Защитите себя, установив более низкий лимит расходов.",
|
"message": "$1 Контракт может потратить весь ваш баланс токенов без дополнительного уведомления или согласия. Защитите себя, установив более низкий лимит расходов.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Слабый"
|
"message": "Слабый"
|
||||||
|
2
app/_locales/tl/messages.json
generated
2
app/_locales/tl/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Maaaring gastusin ng kontrata ang iyong buong balanse ng token nang walang karagdagang abiso o pahintulot. Protektahan ang iyong sarili sa pamamagitan ng pag-customize ng mas mababang limitasyon sa paggastos.",
|
"message": "$1 Maaaring gastusin ng kontrata ang iyong buong balanse ng token nang walang karagdagang abiso o pahintulot. Protektahan ang iyong sarili sa pamamagitan ng pag-customize ng mas mababang limitasyon sa paggastos.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Madali"
|
"message": "Madali"
|
||||||
|
2
app/_locales/tr/messages.json
generated
2
app/_locales/tr/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Sözleşme, başkaca bildiri ya da rıza olmaksızın tüm token bakiyenizi harcayabilir. Düşük bir harcama limitini özelleştirerek kendinizi koruyun.",
|
"message": "$1 Sözleşme, başkaca bildiri ya da rıza olmaksızın tüm token bakiyenizi harcayabilir. Düşük bir harcama limitini özelleştirerek kendinizi koruyun.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Zayıf"
|
"message": "Zayıf"
|
||||||
|
2
app/_locales/vi/messages.json
generated
2
app/_locales/vi/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 Hợp đồng có thể chi tiêu toàn bộ số dư token của bạn mà không cần thông báo hoặc chấp thuận. Hãy tự bảo vệ chính mình bằng cách chỉnh hạn mức chi tiêu thấp hơn.",
|
"message": "$1 Hợp đồng có thể chi tiêu toàn bộ số dư token của bạn mà không cần thông báo hoặc chấp thuận. Hãy tự bảo vệ chính mình bằng cách chỉnh hạn mức chi tiêu thấp hơn.",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "Yếu"
|
"message": "Yếu"
|
||||||
|
2
app/_locales/zh_CN/messages.json
generated
2
app/_locales/zh_CN/messages.json
generated
@ -4236,7 +4236,7 @@
|
|||||||
},
|
},
|
||||||
"warningTooltipText": {
|
"warningTooltipText": {
|
||||||
"message": "$1 合约可能会花费您的全部代币余额,无需进一步通知或同意。请自定义较低的支出上限以保护自己。",
|
"message": "$1 合约可能会花费您的全部代币余额,无需进一步通知或同意。请自定义较低的支出上限以保护自己。",
|
||||||
"description": "$1 is a fa-exclamation-circle icon with text 'Be careful' in 'warning' colour"
|
"description": "$1 is a warning icon with text 'Be careful' in 'warning' colour"
|
||||||
},
|
},
|
||||||
"weak": {
|
"weak": {
|
||||||
"message": "弱"
|
"message": "弱"
|
||||||
|
@ -7,7 +7,7 @@ import { I18nContext } from '../../../contexts/i18n';
|
|||||||
import Box from '../../ui/box';
|
import Box from '../../ui/box';
|
||||||
import FormField from '../../ui/form-field';
|
import FormField from '../../ui/form-field';
|
||||||
import Typography from '../../ui/typography';
|
import Typography from '../../ui/typography';
|
||||||
import { ButtonLink } from '../../component-library';
|
import { ButtonLink, Icon, ICON_NAMES } from '../../component-library';
|
||||||
import {
|
import {
|
||||||
AlignItems,
|
AlignItems,
|
||||||
DISPLAY,
|
DISPLAY,
|
||||||
@ -151,7 +151,7 @@ export default function CustomSpendingCap({
|
|||||||
fontWeight={FONT_WEIGHT.BOLD}
|
fontWeight={FONT_WEIGHT.BOLD}
|
||||||
color={TextColor.errorDefault}
|
color={TextColor.errorDefault}
|
||||||
>
|
>
|
||||||
<i className="fa fa-exclamation-circle" /> {t('beCareful')}
|
<Icon name={ICON_NAMES.WARNING} /> {t('beCareful')}
|
||||||
</Typography>,
|
</Typography>,
|
||||||
])
|
])
|
||||||
: t('inputLogicEmptyState');
|
: t('inputLogicEmptyState');
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
.snap-content-footer {
|
.snap-content-footer {
|
||||||
i {
|
|
||||||
color: var(--color-icon-muted);
|
|
||||||
padding-right: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -11,9 +11,12 @@ import {
|
|||||||
JustifyContent,
|
JustifyContent,
|
||||||
AlignItems,
|
AlignItems,
|
||||||
TextColor,
|
TextColor,
|
||||||
|
Size,
|
||||||
|
IconColor,
|
||||||
} from '../../../../helpers/constants/design-system';
|
} from '../../../../helpers/constants/design-system';
|
||||||
import Button from '../../../ui/button';
|
import Button from '../../../ui/button';
|
||||||
import Box from '../../../ui/box/box';
|
import Box from '../../../ui/box/box';
|
||||||
|
import { Icon, ICON_NAMES } from '../../../component-library';
|
||||||
|
|
||||||
export default function SnapContentFooter({ snapName, snapId }) {
|
export default function SnapContentFooter({ snapName, snapId }) {
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
@ -32,7 +35,12 @@ export default function SnapContentFooter({ snapName, snapId }) {
|
|||||||
paddingBottom={4}
|
paddingBottom={4}
|
||||||
className="snap-content-footer"
|
className="snap-content-footer"
|
||||||
>
|
>
|
||||||
<i className="fas fa-exclamation-circle fa-sm" />
|
<Icon
|
||||||
|
name={ICON_NAMES.WARNING}
|
||||||
|
size={Size.SM}
|
||||||
|
color={IconColor.iconMuted}
|
||||||
|
paddingRight={1}
|
||||||
|
/>
|
||||||
<Typography color={TextColor.textMuted} variant={TypographyVariant.H7}>
|
<Typography color={TextColor.textMuted} variant={TypographyVariant.H7}>
|
||||||
{t('snapContent', [
|
{t('snapContent', [
|
||||||
<Button type="inline" onClick={handleNameClick} key="button">
|
<Button type="inline" onClick={handleNameClick} key="button">
|
||||||
|
@ -5,8 +5,9 @@ exports[`ErrorMessage Component should render a message from props.errorMessage
|
|||||||
<div
|
<div
|
||||||
class="error-message"
|
class="error-message"
|
||||||
>
|
>
|
||||||
<i
|
<span
|
||||||
class="fa fa-exclamation-circle error-message__icon"
|
class="box error-message__icon mm-icon mm-icon--size-sm box--margin-right-2 box--display-inline-block box--flex-direction-row box--color-error-default"
|
||||||
|
style="mask-image: url('./images/icons/warning.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="error-message__text"
|
class="error-message__text"
|
||||||
@ -22,8 +23,9 @@ exports[`ErrorMessage Component should render a message translated from props.er
|
|||||||
<div
|
<div
|
||||||
class="error-message"
|
class="error-message"
|
||||||
>
|
>
|
||||||
<i
|
<span
|
||||||
class="fa fa-exclamation-circle error-message__icon"
|
class="box error-message__icon mm-icon mm-icon--size-sm box--margin-right-2 box--display-inline-block box--flex-direction-row box--color-error-default"
|
||||||
|
style="mask-image: url('./images/icons/warning.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="error-message__text"
|
class="error-message__text"
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import { Icon, ICON_NAMES } from '../../component-library';
|
||||||
|
import { IconColor, Size } from '../../../helpers/constants/design-system';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated - Please use ActionableMessage type danger
|
* @deprecated - Please use ActionableMessage type danger
|
||||||
@ -15,7 +17,13 @@ const ErrorMessage = (props, context) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="error-message">
|
<div className="error-message">
|
||||||
<i className="fa fa-exclamation-circle error-message__icon" />
|
<Icon
|
||||||
|
className="error-message__icon"
|
||||||
|
name={ICON_NAMES.WARNING}
|
||||||
|
size={Size.SM}
|
||||||
|
color={IconColor.errorDefault}
|
||||||
|
marginRight={2}
|
||||||
|
/>
|
||||||
<div className="error-message__text">{error}</div>
|
<div className="error-message__text">{error}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -11,12 +11,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
|
|
||||||
&__icon {
|
|
||||||
margin-right: 8px;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
color: var(--color-error-default);
|
|
||||||
}
|
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,6 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
|
||||||
font-size: $font-size-h7;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__value {
|
&__value {
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,10 @@ export default function ReviewSpendingCap({
|
|||||||
fontWeight={FONT_WEIGHT.BOLD}
|
fontWeight={FONT_WEIGHT.BOLD}
|
||||||
color={TextColor.errorDefault}
|
color={TextColor.errorDefault}
|
||||||
>
|
>
|
||||||
<i className="fa fa-exclamation-circle" />{' '}
|
<Icon
|
||||||
|
name={ICON_NAMES.WARNING}
|
||||||
|
style={{ verticalAlign: 'middle' }}
|
||||||
|
/>
|
||||||
{t('beCareful')}
|
{t('beCareful')}
|
||||||
</Typography>,
|
</Typography>,
|
||||||
])}
|
])}
|
||||||
|
@ -503,8 +503,9 @@ exports[`Confirm Transaction Base should match snapshot 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="error-message"
|
class="error-message"
|
||||||
>
|
>
|
||||||
<i
|
<span
|
||||||
class="fa fa-exclamation-circle error-message__icon"
|
class="box error-message__icon mm-icon mm-icon--size-sm box--margin-right-2 box--display-inline-block box--flex-direction-row box--color-error-default"
|
||||||
|
style="mask-image: url('./images/icons/warning.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="error-message__text"
|
class="error-message__text"
|
||||||
|
Loading…
Reference in New Issue
Block a user