Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #370 from paritytech/luke-misc-thibaut
Browse files Browse the repository at this point in the history
Change Cancel to Back button. Password field autofocus on Unlock component
  • Loading branch information
Tbaut authored Jan 18, 2019
2 parents 32b6f35 + e80dc54 commit 0e1e20d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AccountCopyPhrase extends Component {
<nav className='form-nav -space-around'>
{currentStep > 1 && (
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class AccountImportOptions extends Component {
<p>{error}</p>
<nav className='form-nav -space-around'>
{currentStep > 1 && (
<button className='button -cancel' onClick={history.goBack}>
<button className='button -back' onClick={history.goBack}>
Back
</button>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AccountName extends Component {
)}
</div>
<div className='account_change_blockies'>
<button className='button -cancel' onClick={generateNewAccount}>
<button className='button -back' onClick={generateNewAccount}>
Generate another icon
</button>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ class AccountName extends Component {
<nav className='form-nav -space-around'>
{currentStep > 1 && (
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class AccountPassword extends Component {
<nav className='form-nav -space-around'>
{currentStep > 1 && (
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AccountRewritePhrase extends Component {
<nav className='form-nav -space-around'>
{currentStep > 1 && (
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
2 changes: 1 addition & 1 deletion packages/fether-react/src/BackupAccount/BackupAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class BackupAccount extends Component {

<nav className='form-nav -space-around'>
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class ScanSignedTx extends Component {

<nav className='form-nav -space-around'>
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
2 changes: 1 addition & 1 deletion packages/fether-react/src/Send/TxQrCode/TxQrCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class TxQrCode extends Component {
/>
<nav className='form-nav -space-around'>
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Expand Down
5 changes: 3 additions & 2 deletions packages/fether-react/src/Send/Unlock/Unlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Unlock extends Component {
</div>

<Field
autoFocus
label='Password'
name='password'
render={FetherForm.Field}
Expand All @@ -104,11 +105,11 @@ class Unlock extends Component {

<nav className='form-nav -binary'>
<button
className='button -cancel'
className='button -back'
onClick={history.goBack}
type='button'
>
Cancel
Back
</button>

<button
Expand Down
2 changes: 1 addition & 1 deletion packages/fether-react/src/assets/sass/shared/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}
}

&.-cancel {
&.-back {
font-size: ms(-2);
border-width: 0;
background-color: $faint;
Expand Down

0 comments on commit 0e1e20d

Please sign in to comment.