From eb3f0e7c086ec89fbded26dc40fe95d066bb3e8d Mon Sep 17 00:00:00 2001 From: surajgjadhav Date: Wed, 7 Jun 2023 22:17:03 +0530 Subject: [PATCH 1/2] issue-18714: Replaced deprecated constants with enum in eth-sign-modal.js --- .../modals/eth-sign-modal/eth-sign-modal.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/components/app/modals/eth-sign-modal/eth-sign-modal.js b/ui/components/app/modals/eth-sign-modal/eth-sign-modal.js index e6d028064fd5..47b056a7b28c 100644 --- a/ui/components/app/modals/eth-sign-modal/eth-sign-modal.js +++ b/ui/components/app/modals/eth-sign-modal/eth-sign-modal.js @@ -18,11 +18,11 @@ import { } from '../../../component-library'; import { AlignItems, - DISPLAY, - FLEX_DIRECTION, + Display, + FlexDirection, IconColor, JustifyContent, - SEVERITIES, + Severity, Size, TextAlign, TextVariant, @@ -63,14 +63,14 @@ const EthSignModal = ({ hideModal }) => { return ( @@ -105,7 +105,7 @@ const EthSignModal = ({ hideModal }) => { {t('learnMoreUpperCase')} - + {t('toggleEthSignModalBannerText')} {t('toggleEthSignModalBannerBoldText')} @@ -125,7 +125,7 @@ const EthSignModal = ({ hideModal }) => { /> ) : ( @@ -146,8 +146,8 @@ const EthSignModal = ({ hideModal }) => { )} Date: Wed, 7 Jun 2023 22:46:27 +0530 Subject: [PATCH 2/2] issue-18714: Replaced deprecated constants with enum in hold-to-reveal-modal.js --- .../hold-to-reveal-modal.js | 24 +++++++++---------- .../hold-to-reveal-modal.stories.js | 13 ++++++++++ 2 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 ui/components/app/modals/hold-to-reveal-modal/hold-to-reveal-modal.stories.js diff --git a/ui/components/app/modals/hold-to-reveal-modal/hold-to-reveal-modal.js b/ui/components/app/modals/hold-to-reveal-modal/hold-to-reveal-modal.js index 3377127c76e4..2537d1cd2d46 100644 --- a/ui/components/app/modals/hold-to-reveal-modal/hold-to-reveal-modal.js +++ b/ui/components/app/modals/hold-to-reveal-modal/hold-to-reveal-modal.js @@ -12,8 +12,8 @@ import { } from '../../../component-library'; import { AlignItems, - DISPLAY, - FLEX_DIRECTION, + Display, + FlexDirection, JustifyContent, Size, TextVariant, @@ -58,8 +58,8 @@ const HoldToRevealModal = ({ const renderHoldToRevealPrivateKeyContent = () => { return ( @@ -80,7 +80,7 @@ const HoldToRevealModal = ({ key="hold-to-reveal-4" variant={TextVariant.bodyMd} as="span" - display={DISPLAY.INLINE} + display={Display.Inline} > {t('holdToRevealContent4')} , @@ -103,8 +103,8 @@ const HoldToRevealModal = ({ const renderHoldToRevealSRPContent = () => { return ( @@ -125,7 +125,7 @@ const HoldToRevealModal = ({ key="hold-to-reveal-4" variant={TextVariant.bodyMd} as="span" - display={DISPLAY.INLINE} + display={Display.Inline} > {t('holdToRevealContent4')} , @@ -148,14 +148,14 @@ const HoldToRevealModal = ({ return ( ; + +export const DefaultStory = Template.bind({}); + +DefaultStory.storyName = 'Default';