Skip to content

Commit

Permalink
Update Withdraw Candidacy warning (Joystream#3895) (Joystream#3923)
Browse files Browse the repository at this point in the history
* Update `Withdraw Candidacy` warning (Joystream#3895)

* test

Co-authored-by: Joystream Stats <dev@joystreamstats.live>
  • Loading branch information
2 people authored and XxFlameCatxX committed Jan 14, 2023
1 parent f7752be commit 65bbe1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ export const WithdrawWarningModal = ({ onNext, onClose }: Props) => {
<ModalHeader onClick={onClose} title="Caution" icon={<AlertSymbol />} />
<ModalBody>
<TextMedium margin="s">
Caution, this action is irreversible. Once you withdraw your candidacy, you will not be able to apply again
with this account in the same election cycle, while still incurring the transaction costs for applying and
withdrawing candidacy.
Withdrawing a candidacy is irreversible however you can announce another one with the same account afterwards.
This is currently the only way to edit bullet points and agenda.
</TextMedium>
</ModalBody>
<ModalFooter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('UI: Withdraw Candidacy Modal', () => {
it('Warning', async () => {
renderModal(getMember('alice'))

expect(await screen.findByText(/^Caution, this action is irreversible/i)).toBeDefined()
expect(await screen.findByText(/^Withdrawing a candidacy is irreversible/i)).toBeDefined()
})

it('Transaction sign', async () => {
Expand Down

0 comments on commit 65bbe1a

Please sign in to comment.