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

Commit 0e1e20d

Browse files
authored
Merge pull request #370 from paritytech/luke-misc-thibaut
Change Cancel to Back button. Password field autofocus on Unlock component
2 parents 32b6f35 + e80dc54 commit 0e1e20d

File tree

10 files changed

+13
-12
lines changed

10 files changed

+13
-12
lines changed

packages/fether-react/src/Accounts/CreateAccount/AccountCopyPhrase/AccountCopyPhrase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class AccountCopyPhrase extends Component {
5757
<nav className='form-nav -space-around'>
5858
{currentStep > 1 && (
5959
<button
60-
className='button -cancel'
60+
className='button -back'
6161
onClick={history.goBack}
6262
type='button'
6363
>

packages/fether-react/src/Accounts/CreateAccount/AccountImportOptions/AccountImportOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class AccountImportOptions extends Component {
213213
<p>{error}</p>
214214
<nav className='form-nav -space-around'>
215215
{currentStep > 1 && (
216-
<button className='button -cancel' onClick={history.goBack}>
216+
<button className='button -back' onClick={history.goBack}>
217217
Back
218218
</button>
219219
)}

packages/fether-react/src/Accounts/CreateAccount/AccountName/AccountName.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class AccountName extends Component {
9797
)}
9898
</div>
9999
<div className='account_change_blockies'>
100-
<button className='button -cancel' onClick={generateNewAccount}>
100+
<button className='button -back' onClick={generateNewAccount}>
101101
Generate another icon
102102
</button>
103103
</div>
@@ -132,7 +132,7 @@ class AccountName extends Component {
132132
<nav className='form-nav -space-around'>
133133
{currentStep > 1 && (
134134
<button
135-
className='button -cancel'
135+
className='button -back'
136136
onClick={history.goBack}
137137
type='button'
138138
>

packages/fether-react/src/Accounts/CreateAccount/AccountPassword/AccountPassword.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class AccountPassword extends Component {
107107
<nav className='form-nav -space-around'>
108108
{currentStep > 1 && (
109109
<button
110-
className='button -cancel'
110+
className='button -back'
111111
onClick={history.goBack}
112112
type='button'
113113
>

packages/fether-react/src/Accounts/CreateAccount/AccountRewritePhrase/AccountRewritePhrase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class AccountRewritePhrase extends Component {
7272
<nav className='form-nav -space-around'>
7373
{currentStep > 1 && (
7474
<button
75-
className='button -cancel'
75+
className='button -back'
7676
onClick={history.goBack}
7777
type='button'
7878
>

packages/fether-react/src/BackupAccount/BackupAccount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class BackupAccount extends Component {
9494

9595
<nav className='form-nav -space-around'>
9696
<button
97-
className='button -cancel'
97+
className='button -back'
9898
onClick={history.goBack}
9999
type='button'
100100
>

packages/fether-react/src/Send/ScanSignedTx/ScanSignedTx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ScanSignedTx extends Component {
8383

8484
<nav className='form-nav -space-around'>
8585
<button
86-
className='button -cancel'
86+
className='button -back'
8787
onClick={history.goBack}
8888
type='button'
8989
>

packages/fether-react/src/Send/TxQrCode/TxQrCode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class TxQrCode extends Component {
7070
/>
7171
<nav className='form-nav -space-around'>
7272
<button
73-
className='button -cancel'
73+
className='button -back'
7474
onClick={history.goBack}
7575
type='button'
7676
>

packages/fether-react/src/Send/Unlock/Unlock.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class Unlock extends Component {
9595
</div>
9696

9797
<Field
98+
autoFocus
9899
label='Password'
99100
name='password'
100101
render={FetherForm.Field}
@@ -104,11 +105,11 @@ class Unlock extends Component {
104105

105106
<nav className='form-nav -binary'>
106107
<button
107-
className='button -cancel'
108+
className='button -back'
108109
onClick={history.goBack}
109110
type='button'
110111
>
111-
Cancel
112+
Back
112113
</button>
113114

114115
<button

packages/fether-react/src/assets/sass/shared/_button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
}
102102
}
103103

104-
&.-cancel {
104+
&.-back {
105105
font-size: ms(-2);
106106
border-width: 0;
107107
background-color: $faint;

0 commit comments

Comments
 (0)