From 4f174742bd00c6f5e62f30fb729d1bc5b2660f18 Mon Sep 17 00:00:00 2001 From: Arjun Porwal <65214523+ap211unitech@users.noreply.github.com> Date: Tue, 29 Jul 2025 18:11:18 +0530 Subject: [PATCH] chore: remove pool warning (#11730) --- .../page-staking/src/MarkPoolsWarning.tsx | 46 ------------------- packages/page-staking/src/index.tsx | 2 - 2 files changed, 48 deletions(-) delete mode 100644 packages/page-staking/src/MarkPoolsWarning.tsx diff --git a/packages/page-staking/src/MarkPoolsWarning.tsx b/packages/page-staking/src/MarkPoolsWarning.tsx deleted file mode 100644 index 77c459b2ad..0000000000 --- a/packages/page-staking/src/MarkPoolsWarning.tsx +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2017-2025 @polkadot/app-staking authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import React from 'react'; - -import { Icon, styled } from '@polkadot/react-components'; - -interface Props { - children?: React.ReactNode; - className?: string; - withIcon?: boolean; -} - -function MarkPoolsWarning ({ children, className = '', withIcon = true }: Props): React.ReactElement { - return ( - - {withIcon && } - Nomination Pools have evolved! -
-
- You can now participate in both a nomination pool and OpenGov using your pooled funds! -
-
- However, if you're staking solo from the same account while being part of a nomination pool, you might encounter the NotMigrated error. -
- To resolve this, please refer to{' '} - - this article - for the necessary steps to take. - {children} -
- ); -} - -const StyledArticle = styled.article` - .ui--Icon { - color: rgba(255, 196, 12, 1); - margin-right: 0.5rem; - } -`; - -export default React.memo(MarkPoolsWarning); diff --git a/packages/page-staking/src/index.tsx b/packages/page-staking/src/index.tsx index aee52d1277..ea959d07a2 100644 --- a/packages/page-staking/src/index.tsx +++ b/packages/page-staking/src/index.tsx @@ -24,7 +24,6 @@ import Slashes from './Slashes/index.js'; import Targets from './Targets/index.js'; import Validators from './Validators/index.js'; import { STORE_FAVS_BASE } from './constants.js'; -import MarkPoolsWarning from './MarkPoolsWarning.js'; import { useTranslation } from './translate.js'; import useNominations from './useNominations.js'; import useSortedTargets from './useSortedTargets.js'; @@ -140,7 +139,6 @@ function StakingApp ({ basePath, className = '' }: Props): React.ReactElement -