From f7710d795f4c9568f687693c042c707e0a8a3ec7 Mon Sep 17 00:00:00 2001 From: Ali Haghighatkhah Date: Thu, 2 Dec 2021 09:54:56 +0100 Subject: [PATCH] Use signatureCollectionStatus constants --- .../screens/signMultiSignTransaction/summary/footer.js | 3 ++- .../screens/signMultiSignTransaction/summary/summary.js | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/screens/signMultiSignTransaction/summary/footer.js b/src/components/screens/signMultiSignTransaction/summary/footer.js index 6147238e05..9e608f9fd5 100644 --- a/src/components/screens/signMultiSignTransaction/summary/footer.js +++ b/src/components/screens/signMultiSignTransaction/summary/footer.js @@ -1,4 +1,5 @@ import React from 'react'; +import { signatureCollectionStatus } from '@constants'; import { useTheme } from '@utils/theme'; import { removeSearchParamsFromUrl } from '@utils/searchParams'; import { PrimaryButton, SecondaryButton } from '@toolbox/buttons'; @@ -46,7 +47,7 @@ export const Feedback = ({ direction="horizontal" className={styles.footer} > -
+
{feedback}
diff --git a/src/components/screens/signMultiSignTransaction/summary/summary.js b/src/components/screens/signMultiSignTransaction/summary/summary.js index 144fe5fd33..92cf469dee 100644 --- a/src/components/screens/signMultiSignTransaction/summary/summary.js +++ b/src/components/screens/signMultiSignTransaction/summary/summary.js @@ -1,5 +1,6 @@ import React, { useMemo } from 'react'; import { isEmpty } from '@utils/helpers'; +import { signatureCollectionStatus } from '@constants'; import BoxContent from '@toolbox/box/content'; import Box from '@toolbox/box'; import TransactionDetails from '@screens/transactionDetails/transactionDetails'; @@ -40,11 +41,13 @@ const Summary = ({ }; const nextButton = { - title: signatureStatus === 'fullySigned' ? t('Continue') : t('Sign'), + title: signatureStatus === signatureCollectionStatus.fullySigned ? t('Continue') : t('Sign'), onClick, }; - const showFeedback = !isMember || signatureStatus === 'fullySigned' || signatureStatus === 'occupiedByOptionals'; + const showFeedback = !isMember + || signatureStatus === signatureCollectionStatus.fullySigned + || signatureStatus === signatureCollectionStatus.occupiedByOptionals; if (isEmpty(senderAccount.data)) { return
;