Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DDW-701] Merge latest develop and fix conflicts
- Loading branch information
Showing
16 changed files
with
210 additions
and
13 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
59 changes: 59 additions & 0 deletions
59
source/renderer/app/components/staking/delegation-center/DelegationCenterNoWallets.js
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,59 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
import { defineMessages, intlShape } from 'react-intl'; | ||
import SVGInline from 'react-svg-inline'; | ||
import { Button } from 'react-polymorph/lib/components/Button'; | ||
import { ButtonSkin } from 'react-polymorph/lib/skins/simple/ButtonSkin'; | ||
|
||
import styles from './DelegationCenterNoWallets.scss'; | ||
import icon from '../../../assets/images/attention-big-thin.inline.svg'; | ||
|
||
const messages = defineMessages({ | ||
headLine: { | ||
id: 'staking.delegationCenter.noWallets.headLine', | ||
defaultMessage: | ||
"!!!The Delegation Center is not available because you don't have any wallets.", | ||
description: '"No wallets" headLine on the Delegation centre Page.', | ||
}, | ||
instructions: { | ||
id: 'staking.delegationCenter.noWallets.instructions', | ||
defaultMessage: | ||
'!!!Create a new wallet (or restore an existing one) then come back here to delegate your stake.', | ||
description: '"No wallets" instructions on the Delegation centre Page.', | ||
}, | ||
createWalletButtonLabel: { | ||
id: 'staking.delegationCenter.noWallets.createWalletButtonLabel', | ||
defaultMessage: '!!!Create wallet', | ||
description: | ||
'Label for "Create New Wallet" button on the Delegation centre Page.', | ||
}, | ||
}); | ||
|
||
type Props = { | ||
onGoToCreateWalletClick: Function, | ||
}; | ||
|
||
export default class DelegationCenterNoWallets extends Component<Props> { | ||
static contextTypes = { | ||
intl: intlShape.isRequired, | ||
}; | ||
|
||
render() { | ||
const { intl } = this.context; | ||
const { onGoToCreateWalletClick } = this.props; | ||
|
||
return ( | ||
<div className={styles.component}> | ||
<SVGInline svg={icon} className={styles.icon} /> | ||
<h1>{intl.formatMessage(messages.headLine)}</h1> | ||
<p>{intl.formatMessage(messages.instructions)}</p> | ||
<Button | ||
className="primary" | ||
onClick={onGoToCreateWalletClick} | ||
label={intl.formatMessage(messages.createWalletButtonLabel)} | ||
skin={ButtonSkin} | ||
/> | ||
</div> | ||
); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
source/renderer/app/components/staking/delegation-center/DelegationCenterNoWallets.scss
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,38 @@ | ||
.component { | ||
align-items: center; | ||
color: var(--theme-staking-delegation-center-no-wallets-instructions-color); | ||
display: flex; | ||
flex-direction: column; | ||
font-family: var(--font-medium); | ||
justify-content: center; | ||
line-height: 1.38; | ||
padding: 0 40px; | ||
position: absolute; | ||
text-align: center; | ||
top: 50%; | ||
transform: translateY(-130px); | ||
width: 100%; | ||
|
||
h1 { | ||
font-weight: 500; | ||
margin-bottom: 11px; | ||
} | ||
|
||
p { | ||
font-family: var(--font-light); | ||
} | ||
|
||
button { | ||
margin-top: 40px; | ||
} | ||
} | ||
|
||
.icon { | ||
margin-bottom: 30px; | ||
& > svg { | ||
width: 66px; | ||
path { | ||
fill: var(--theme-icon-delegation-center-no-wallets); | ||
} | ||
} | ||
} |
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
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
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