-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ross Bulat
authored
Apr 5, 2024
1 parent
16b268e
commit de3ad50
Showing
20 changed files
with
190 additions
and
226 deletions.
There are no files selected for viewing
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
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,70 @@ | ||
// 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 { Summary } from 'canvas/CreatePool/Summary'; | ||
import { Bond } from 'canvas/CreatePool/Bond'; | ||
import { PoolName } from 'canvas/CreatePool/PoolName'; | ||
import { PoolRoles } from 'canvas/CreatePool/PoolRoles'; | ||
import { CanvasFullScreenWrapper, CanvasTitleWrapper } from 'canvas/Wrappers'; | ||
import { ButtonPrimary } from 'kits/Buttons/ButtonPrimary'; | ||
import { useOverlay } from 'kits/Overlay/Provider'; | ||
|
||
export const CreatePool = () => { | ||
const { t } = useTranslation(); | ||
const { closeCanvas } = useOverlay().canvas; | ||
|
||
return ( | ||
<CanvasFullScreenWrapper> | ||
<div className="head"> | ||
<ButtonPrimary | ||
text={t('pools.back', { ns: 'pages' })} | ||
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('pools.createAPool', { ns: 'pages' })}</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</CanvasTitleWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="metadata" style={{ position: 'absolute' }} /> | ||
<PoolName section={1} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="nominate" style={{ position: 'absolute' }} /> | ||
<Nominate bondFor="pool" section={2} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="roles" style={{ position: 'absolute' }} /> | ||
<PoolRoles section={3} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="bond" style={{ position: 'absolute' }} /> | ||
<Bond section={4} /> | ||
</CardWrapper> | ||
|
||
<CardWrapper className="canvas"> | ||
<Element name="summary" style={{ position: 'absolute' }} /> | ||
<Summary section={5} /> | ||
</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
Oops, something went wrong.