Skip to content

Commit

Permalink
Move "Skip this step" to side panel
Browse files Browse the repository at this point in the history
  • Loading branch information
chikeichan committed Oct 21, 2017
1 parent a4ad88c commit ad64705
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
19 changes: 8 additions & 11 deletions mascara/src/app/first-time/buy-ether-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@ class BuyEtherScreen extends Component {
setTimeout(() => this.setState({ justCopied: false }), 1000)
}

renderSkipStep() {
renderSkip() {
const {showAccountDetail, address} = this.props

return (
<button
className="first-time-flow__button--tertiary"
<div
className="buy-ether__side-panel-exit"
onClick={() => showAccountDetail(address)}
>
Skip this step
</button>
<div className="buy-ether__side-panel-item-name">
Do it later
</div>
</div>
)
}

Expand Down Expand Up @@ -100,8 +102,6 @@ class BuyEtherScreen extends Component {
>
Buy
</button>
<div className="buy-ether__button-separator-text">or</div>
{this.renderSkipStep()}
</div>
</div>
)
Expand All @@ -126,8 +126,6 @@ class BuyEtherScreen extends Component {
>
Buy
</button>
<div className="buy-ether__button-separator-text">or</div>
{this.renderSkipStep()}
</div>
</div>
)
Expand All @@ -148,8 +146,6 @@ class BuyEtherScreen extends Component {
>
{ justCopied ? 'Copied' : 'Copy' }
</button>
<div className="buy-ether__button-separator-text">or</div>
{this.renderSkipStep()}
</div>
</div>
)
Expand Down Expand Up @@ -189,6 +185,7 @@ class BuyEtherScreen extends Component {
)}
</div>
))}
{this.renderSkip()}
</div>
<div className="buy-ether__action-content">
{this.renderContent()}
Expand Down
10 changes: 9 additions & 1 deletion mascara/src/app/first-time/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ button.backup-phrase__confirm-seed-option:hover {
flex-flow: column nowrap;
}

.buy-ether__side-panel-item {
.buy-ether__side-panel-item,
.buy-ether__side-panel-exit {
display: flex;
flex-flow: row nowrap;
align-items: center;
Expand All @@ -372,6 +373,13 @@ button.backup-phrase__confirm-seed-option:hover {
line-height: 18px;
cursor: pointer;
min-width: 140px;
}

.buy-ether__side-panel-exit {
color: #FF001F;
}

.buy-ether__side-panel-item {
border-bottom: 1px solid #CDCDCD;
}

Expand Down

0 comments on commit ad64705

Please sign in to comment.