Skip to content

Commit

Permalink
issue-18714: Replaced deprecated constants with enum in confirmation-…
Browse files Browse the repository at this point in the history
…warning-modal.js (#19477)
  • Loading branch information
surajgjadhav authored Jun 7, 2023
1 parent 58f6cf9 commit e7adf7a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import Popover from '../../ui/popover';
import Box from '../../ui/box';
import Button from '../../ui/button';
import {
DISPLAY,
FLEX_DIRECTION,
FONT_WEIGHT,
Display,
FlexDirection,
FontWeight,
JustifyContent,
TextVariant,
AlignItems,
Expand All @@ -24,8 +24,8 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
className="confirmation-warning-modal__content"
footer={
<Box
display={DISPLAY.FLEX}
flexDirection={FLEX_DIRECTION.COLUMN}
display={Display.Flex}
flexDirection={FlexDirection.Column}
justifyContent={JustifyContent.spaceBetween}
className="confirmation-warning-modal__footer"
>
Expand All @@ -47,8 +47,8 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
}
>
<Box
display={DISPLAY.FLEX}
flexDirection={FLEX_DIRECTION.ROW}
display={Display.Flex}
flexDirection={FlexDirection.Row}
alignItems={AlignItems.center}
padding={3}
margin={0}
Expand All @@ -63,7 +63,7 @@ const ConfirmationWarningModal = ({ onSubmit, onCancel }) => {
<Text
variant={TextVariant.headingSm}
as="h4"
fontWeight={FONT_WEIGHT.BOLD}
fontWeight={FontWeight.Bold}
>
{t('addEthereumChainWarningModalTitle')}
</Text>
Expand Down

0 comments on commit e7adf7a

Please sign in to comment.