mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 20:02:58 +01:00
issue-18714: Replaced deprecated constants with enum in confirmation-warning-modal.js (#19477)
This commit is contained in:
parent
58f6cf96cf
commit
e7adf7ac22
@ -6,9 +6,9 @@ import Popover from '../../ui/popover';
|
|||||||
import Box from '../../ui/box';
|
import Box from '../../ui/box';
|
||||||
import Button from '../../ui/button';
|
import Button from '../../ui/button';
|
||||||
import {
|
import {
|
||||||
DISPLAY,
|
Display,
|
||||||
FLEX_DIRECTION,
|
FlexDirection,
|
||||||
FONT_WEIGHT,
|
FontWeight,
|
||||||
JustifyContent,
|
JustifyContent,
|
||||||
TextVariant,
|
TextVariant,
|
||||||
AlignItems,
|
AlignItems,
|
||||||
@ -24,8 +24,8 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
|
|||||||
className="confirmation-warning-modal__content"
|
className="confirmation-warning-modal__content"
|
||||||
footer={
|
footer={
|
||||||
<Box
|
<Box
|
||||||
display={DISPLAY.FLEX}
|
display={Display.Flex}
|
||||||
flexDirection={FLEX_DIRECTION.COLUMN}
|
flexDirection={FlexDirection.Column}
|
||||||
justifyContent={JustifyContent.spaceBetween}
|
justifyContent={JustifyContent.spaceBetween}
|
||||||
className="confirmation-warning-modal__footer"
|
className="confirmation-warning-modal__footer"
|
||||||
>
|
>
|
||||||
@ -47,8 +47,8 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
display={DISPLAY.FLEX}
|
display={Display.Flex}
|
||||||
flexDirection={FLEX_DIRECTION.ROW}
|
flexDirection={FlexDirection.Row}
|
||||||
alignItems={AlignItems.center}
|
alignItems={AlignItems.center}
|
||||||
padding={3}
|
padding={3}
|
||||||
margin={0}
|
margin={0}
|
||||||
@ -63,7 +63,7 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
|
|||||||
<Text
|
<Text
|
||||||
variant={TextVariant.headingSm}
|
variant={TextVariant.headingSm}
|
||||||
as="h4"
|
as="h4"
|
||||||
fontWeight={FONT_WEIGHT.BOLD}
|
fontWeight={FontWeight.Bold}
|
||||||
>
|
>
|
||||||
{t('addEthereumChainWarningModalTitle')}
|
{t('addEthereumChainWarningModalTitle')}
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
Reference in New Issue
Block a user