diff --git a/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx b/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx index 919a1521ee..50921df9e1 100644 --- a/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx +++ b/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx @@ -20,15 +20,9 @@ export const NodeSettings = ({ onClose, onError, }: { -<<<<<<< HEAD currentPm?: TBondedMixnode['profitMargin']; isVesting?: boolean; - onConfirm: (profitMargin: number, fee?: FeeDetails) => Promise; -======= - currentPm: TBondedMixnode['profitMargin']; - isVesting: boolean; onConfirm: (profitMargin: string, fee?: FeeDetails) => Promise; ->>>>>>> develop onClose: () => void; onError: (err: string) => void; }) => { @@ -81,7 +75,7 @@ export const NodeSettings = ({ if (isFeeLoading) return ; - if (fee) + if (fee && pm) return ( >>>>>> develop import { TBondedGateway, TBondedMixnode } from 'src/context'; import { useGetFee } from 'src/hooks/useGetFee'; import { isGateway, isMixnode } from 'src/types'; @@ -29,62 +23,12 @@ interface Props { onError: (e: string) => void; } -<<<<<<< HEAD -type TUnbondModalStep = 1 | 2 | 3; - -const UnbondFirstStep = ({ handleVerification, onClose }: { handleVerification: any; onClose: () => void }) => { - const [verificationText, setVerificationText] = useState(''); -======= export const UnbondModal = ({ node, onConfirm, onClose, onError }: Props) => { const { fee, isFeeLoading, getFee, feeError } = useGetFee(); const [isConfirmed, setIsConfirmed] = useState(false); const [showConfirmModal, setShowConfirmModal] = useState(true); const [confirmField, setConfirmField] = useState(''); ->>>>>>> develop - const theme = useTheme(); - - return ( - - - If you unbond your node you will loose all your delegators! - - - This action is irreversible and it will not be possible to restore the current state again - - - To unbond, type UNBOND in the field below and click - UNBOND button - - { - setVerificationText(e.target.value); - }} - fullWidth - /> - - ); -}; - -const UnbondSecondStep = ({ node, onConfirm, onClose, onError }: Props) => { - const { fee, isFeeLoading, getFee, feeError } = useGetFee(); useEffect(() => { if (feeError) { onError(feeError); @@ -169,18 +113,3 @@ const UnbondSecondStep = ({ node, onConfirm, onClose, onError }: Props) => { } return ; }; - -export const UnbondModal = ({ node, onConfirm, onClose, onError }: Props) => { - const [step, setStep] = useState(1); - - const handleVerification = () => { - setStep(2); - }; - - return ( -
- {step === 1 && } - {step === 2 && } -
- ); -}; diff --git a/nym-wallet/src/components/Modals/SimpleModal.tsx b/nym-wallet/src/components/Modals/SimpleModal.tsx index 1da3e1c147..27aa325b9b 100644 --- a/nym-wallet/src/components/Modals/SimpleModal.tsx +++ b/nym-wallet/src/components/Modals/SimpleModal.tsx @@ -70,11 +70,7 @@ export const SimpleModal: React.FC<{ {children} {(onOk || onBack) && ( -<<<<<<< HEAD -======= - ->>>>>>> develop {onBack && } {onOk && (