diff --git a/nym-wallet/src/routes/undelegate/UndelegateForm.tsx b/nym-wallet/src/routes/undelegate/UndelegateForm.tsx index 1c1a476e3c..3b2839fef5 100644 --- a/nym-wallet/src/routes/undelegate/UndelegateForm.tsx +++ b/nym-wallet/src/routes/undelegate/UndelegateForm.tsx @@ -1,6 +1,16 @@ import React, { useContext, useEffect } from 'react' import { useForm, Controller } from 'react-hook-form' -import { Box, Alert, Autocomplete, Button, CircularProgress, FormControl, Grid, TextField } from '@mui/material' +import { + Box, + Alert, + Autocomplete, + Button, + CircularProgress, + FormControl, + Grid, + TextField, + Typography, +} from '@mui/material' import { yupResolver } from '@hookform/resolvers/yup' import { validationSchema } from './validationSchema' import { EnumNodeType, TFee } from '../../types' @@ -63,13 +73,6 @@ export const UndelegateForm = ({ - - - - {`A fee of ${fees.mixnode.amount} punk will apply to this transaction`} - - - + + Fee for this transaction: {fees.mixnode.amount} punk + { const [message, setMessage] = useState() - const [status, setStatus] = useState( - EnumRequestStatus.initial, - ) + const [status, setStatus] = useState(EnumRequestStatus.initial) const [isLoading, setIsLoading] = useState(true) const [fees, setFees] = useState() const [delegations, setDelegations] = useState() @@ -53,11 +48,7 @@ export const Undelegate = () => { return ( - + {isLoading && ( { Success={ {' '} - - Undelegation complete - + Undelegation complete {message} }