-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Start nominating canvas (#2062)
- Loading branch information
Ross Bulat
authored
Apr 5, 2024
1 parent
de3ad50
commit 0208d5f
Showing
15 changed files
with
117 additions
and
156 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,64 @@ | ||
// Copyright 2024 @paritytech/polkadot-staking-dashboard authors & contributors | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
|
||
import { faTimes } from '@fortawesome/free-solid-svg-icons'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { Element } from 'react-scroll'; | ||
import { CardWrapper } from 'library/Card/Wrappers'; | ||
import { Nominate } from 'library/SetupSteps/Nominate'; | ||
import { Payee } from 'canvas/NominatorSetup/Payee'; | ||
import { Bond } from 'canvas/NominatorSetup/Bond'; | ||
import { Summary } from 'canvas/NominatorSetup/Summary'; | ||
import { CanvasFullScreenWrapper, CanvasTitleWrapper } from 'canvas/Wrappers'; | ||
import { ButtonPrimary } from 'kits/Buttons/ButtonPrimary'; | ||
import { useOverlay } from 'kits/Overlay/Provider'; | ||
|
||
export const NominatorSetup = () => { | ||
const { t } = useTranslation('pages'); | ||
const { closeCanvas } = useOverlay().canvas; | ||
|
||
return ( | ||
<CanvasFullScreenWrapper> | ||
<div className="head"> | ||
<ButtonPrimary | ||
text={t('pools.back')} | ||
lg | ||
onClick={() => closeCanvas()} | ||
iconLeft={faTimes} | ||
style={{ marginLeft: '1.1rem' }} | ||
/> | ||
</div> | ||
|
||
<CanvasTitleWrapper> | ||
<div className="inner standalone"> | ||
<div className="empty"></div> | ||
<div className="standalone"> | ||
<div className="title"> | ||
<h1>{t('nominate.startNominating')}</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</CanvasTitleWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="payee" style={{ position: 'absolute' }} /> | ||
<Payee section={1} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="nominate" style={{ position: 'absolute' }} /> | ||
<Nominate bondFor="nominator" section={2} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="bond" style={{ position: 'absolute' }} /> | ||
<Bond section={3} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="summary" style={{ position: 'absolute' }} /> | ||
<Summary section={4} /> | ||
</CardWrapper> | ||
</CanvasFullScreenWrapper> | ||
); | ||
}; |
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
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
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
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
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
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
Oops, something went wrong.