From 444c787d0a7a6966f4fe4fe233565532692ccdec Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Thu, 18 Jul 2024 17:32:11 +0100 Subject: [PATCH] Add kind prop to vesting contract migration modal --- .../src/components/VestingWarningModal/index.tsx | 15 ++++++++------- nym-wallet/src/pages/delegation/index.tsx | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/nym-wallet/src/components/VestingWarningModal/index.tsx b/nym-wallet/src/components/VestingWarningModal/index.tsx index 08ec056853..a594ad25b2 100644 --- a/nym-wallet/src/components/VestingWarningModal/index.tsx +++ b/nym-wallet/src/components/VestingWarningModal/index.tsx @@ -6,19 +6,20 @@ import DialogContent from '@mui/material/DialogContent'; import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; -export const VestingWarningModal: FC<{ isVisible: boolean; handleClose: (result: 'yes' | 'no') => void }> = ({ - isVisible, - handleClose, -}) => ( +export const VestingWarningModal: FC<{ + kind: 'delegations' | 'bond'; + isVisible: boolean; + handleClose: (result: 'yes' | 'no') => void; +}> = ({ kind, isVisible, handleClose }) => ( - Migrate all of your delegations? + Migrate your {kind}? - By clicking yes we will migrate your delegations to the mixnet contract. + By clicking yes we will migrate your {kind} to the mixnet contract. The operation will be instant, you will keep your rewards and they will continue to accumulate. Once migrated, - you will be able to withdraw you rewards. + you will be able to withdraw your rewards. diff --git a/nym-wallet/src/pages/delegation/index.tsx b/nym-wallet/src/pages/delegation/index.tsx index 6d6c32d204..b77873bad1 100644 --- a/nym-wallet/src/pages/delegation/index.tsx +++ b/nym-wallet/src/pages/delegation/index.tsx @@ -350,6 +350,7 @@ export const Delegation: FC<{ isStorybook?: boolean }> = ({ isStorybook }) => { { setShowVestingWarningModal(false);