1
0
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:
Suraj Jadhav 2023-06-08 04:49:32 +05:30 committed by GitHub
parent 58f6cf96cf
commit e7adf7ac22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>