-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pools warning for staking to staking page (#10761)
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright 2017-2024 @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<Props> { | ||
return ( | ||
<StyledArticle className={`${className} mark warning`}> | ||
{withIcon && <Icon icon='exclamation-triangle' />} | ||
<strong>Nomination Pools are evolving!</strong> | ||
<br /> | ||
<br /> | ||
Soon you will be able to participate in a pool and in OpenGov with your pooled funds, and switch pools with the same ease as solo stakers! | ||
<br /> | ||
<br /> | ||
You do not need to do anything, unless you are participating in a pool and also staking solo from the same account. | ||
<br /> | ||
In this case, you need to unbond the funds you are staking solo <strong>as soon as possible</strong>, in order to avail yourself from the automatic migration that will happen, and avoid migrating your pool membership manually. | ||
Please check | ||
<a | ||
href='https://hackmd.io/@ak0n/delegate-stake-faq' | ||
rel='noreferrer' | ||
target='_blank' | ||
> | ||
this article | ||
</a> | ||
for more details. | ||
{children} | ||
</StyledArticle> | ||
); | ||
} | ||
|
||
const StyledArticle = styled.article` | ||
.ui--Icon { | ||
color: rgba(255, 196, 12, 1); | ||
margin-right: 0.5rem; | ||
} | ||
`; | ||
|
||
export default React.memo(MarkPoolsWarning); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters