Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
55620cd7
Commit
55620cd7
authored
Jun 28, 2018
by
Amaury Martiny
Browse files
Add back buttons in account creation
parent
e0bf89c3
Pipeline
#44254
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
packages/fether-react/src/Accounts/CreateAccount/AccountCopyPhrase/AccountCopyPhrase.js
View file @
55620cd7
...
...
@@ -14,6 +14,7 @@ class AccountCopyPhrase extends Component {
render
()
{
const
{
createAccountStore
:
{
address
,
name
,
phrase
},
history
,
location
:
{
pathname
}
}
=
this
.
props
;
const
currentStep
=
pathname
.
slice
(
-
1
);
...
...
@@ -43,7 +44,12 @@ class AccountCopyPhrase extends Component {
<
/ul
>
<
/div
>
<
/div
>
<
nav
className
=
'
form-nav
'
>
<
nav
className
=
'
form-nav -space-around
'
>
{
currentStep
>
1
&&
(
<
button
className
=
'
button -cancel
'
onClick
=
{
history
.
goBack
}
>
Back
<
/button
>
)}
<
Link
to
=
{
`/accounts/new/
${
+
currentStep
+
1
}
`
}
>
<
button
className
=
'
button
'
>
Next
<
/button
>
<
/Link
>
...
...
packages/fether-react/src/Accounts/CreateAccount/AccountName/AccountName.js
View file @
55620cd7
...
...
@@ -69,6 +69,7 @@ class AccountName extends Component {
renderDrawer
=
()
=>
{
const
{
createAccountStore
:
{
name
},
history
,
location
:
{
pathname
}
}
=
this
.
props
;
const
currentStep
=
pathname
.
slice
(
-
1
);
...
...
@@ -85,7 +86,12 @@ class AccountName extends Component {
type
=
'
text
'
value
=
{
name
}
/
>
<
nav
className
=
'
form-nav
'
>
<
nav
className
=
'
form-nav -space-around
'
>
{
currentStep
>
1
&&
(
<
button
className
=
'
button -cancel
'
onClick
=
{
history
.
goBack
}
>
Back
<
/button
>
)}
{
name
?
(
<
Link
to
=
{
`/accounts/new/
${
+
currentStep
+
1
}
`
}
>
<
button
className
=
'
button
'
>
Next
<
/button
>
...
...
packages/fether-react/src/Accounts/CreateAccount/AccountPassword/AccountPassword.js
View file @
55620cd7
...
...
@@ -38,9 +38,12 @@ class AccountPassword extends Component {
render
()
{
const
{
createAccountStore
:
{
address
,
name
}
createAccountStore
:
{
address
,
name
},
history
,
location
:
{
pathname
}
}
=
this
.
props
;
const
{
confirm
,
password
}
=
this
.
state
;
const
currentStep
=
pathname
.
slice
(
-
1
);
return
(
<
AccountCard
...
...
@@ -68,7 +71,12 @@ class AccountPassword extends Component {
value
=
{
confirm
}
/
>
<
nav
className
=
'
form-nav
'
>
<
nav
className
=
'
form-nav -space-around
'
>
{
currentStep
>
1
&&
(
<
button
className
=
'
button -cancel
'
onClick
=
{
history
.
goBack
}
>
Back
<
/button
>
)}
<
button
className
=
'
button
'
disabled
=
{
!
password
||
confirm
!==
password
}
...
...
packages/fether-react/src/Accounts/CreateAccount/AccountRewritePhrase/AccountRewritePhrase.js
View file @
55620cd7
...
...
@@ -54,9 +54,12 @@ class AccountRewritePhrase extends Component {
render
()
{
const
{
createAccountStore
:
{
address
,
isImport
,
name
}
createAccountStore
:
{
address
,
isImport
,
name
},
history
,
location
:
{
pathname
}
}
=
this
.
props
;
const
{
value
}
=
this
.
state
;
const
currentStep
=
pathname
.
slice
(
-
1
);
return
(
<
AccountCard
...
...
@@ -81,7 +84,14 @@ class AccountRewritePhrase extends Component {
label
=
'
Recovery phrase
'
/>
<
nav
className
=
'
form-nav
'
>
{
this
.
renderButton
()}
<
/nav
>
<
nav
className
=
'
form-nav -space-around
'
>
{
currentStep
>
1
&&
(
<
button
className
=
'
button -cancel
'
onClick
=
{
history
.
goBack
}
>
Back
<
/button
>
)}
{
this
.
renderButton
()}
<
/nav
>
<
/div
>
]}
/
>
...
...
packages/fether-react/src/assets/sass/components/_form-nav.scss
View file @
55620cd7
...
...
@@ -6,4 +6,8 @@
&
.-binary
{
justify-content
:
space-between
;
}
&
.-space-around
{
justify-content
:
space-around
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment