refactor
This commit is contained in:
@@ -66,7 +66,7 @@ export const BondedMixnode = ({
|
||||
network?: Network;
|
||||
onActionSelect: (action: TBondedMixnodeActions) => void;
|
||||
}) => {
|
||||
const [nextEpoch, setNextEpoch] = useState<string | undefined | Error>();
|
||||
const [nextEpoch, setNextEpoch] = useState<string | Error>();
|
||||
const navigate = useNavigate();
|
||||
const {
|
||||
name,
|
||||
|
||||
@@ -36,10 +36,9 @@ export const Delegation: FC<{ isStorybook?: boolean }> = ({ isStorybook }) => {
|
||||
const [confirmationModalProps, setConfirmationModalProps] = useState<DelegationModalProps | undefined>();
|
||||
const [currentDelegationListActionItem, setCurrentDelegationListActionItem] = useState<DelegationWithEverything>();
|
||||
const [saturationError, setSaturationError] = useState<{ action: 'compound' | 'delegate'; saturation: string }>();
|
||||
const [nextEpoch, setNextEpoch] = useState<string | undefined | Error>();
|
||||
const [nextEpoch, setNextEpoch] = useState<string | Error>();
|
||||
|
||||
const theme = useTheme();
|
||||
|
||||
const {
|
||||
clientDetails,
|
||||
network,
|
||||
|
||||
Reference in New Issue
Block a user