mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Rename render function props from Route
(#7657)
The props parameter from the `Route` render function has been renamed to `routeProps` to avoid confusion with the component props.
This commit is contained in:
parent
e060e4c71f
commit
b34c663712
@ -36,9 +36,9 @@ export default class CreatePassword extends PureComponent {
|
||||
<Route
|
||||
exact
|
||||
path={INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<ImportWithSeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
onSubmit={onCreateNewAccountFromSeed}
|
||||
/>
|
||||
)}
|
||||
@ -46,9 +46,9 @@ export default class CreatePassword extends PureComponent {
|
||||
<Route
|
||||
exact
|
||||
path={INITIALIZE_CREATE_PASSWORD_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<NewAccount
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
onSubmit={onCreateNewAccount}
|
||||
/>
|
||||
)}
|
||||
|
@ -107,9 +107,9 @@ export default class FirstTimeFlow extends PureComponent {
|
||||
<Switch>
|
||||
<Route
|
||||
path={INITIALIZE_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<SeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
seedPhrase={seedPhrase}
|
||||
verifySeedPhrase={verifySeedPhrase}
|
||||
/>
|
||||
@ -117,9 +117,9 @@ export default class FirstTimeFlow extends PureComponent {
|
||||
/>
|
||||
<Route
|
||||
path={INITIALIZE_BACKUP_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<SeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
seedPhrase={seedPhrase}
|
||||
verifySeedPhrase={verifySeedPhrase}
|
||||
/>
|
||||
@ -127,9 +127,9 @@ export default class FirstTimeFlow extends PureComponent {
|
||||
/>
|
||||
<Route
|
||||
path={INITIALIZE_CREATE_PASSWORD_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<CreatePassword
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
isImportedKeyring={isImportedKeyring}
|
||||
onCreateNewAccount={this.handleCreateNewAccount}
|
||||
onCreateNewAccountFromSeed={this.handleImportWithSeedPhrase}
|
||||
@ -142,9 +142,9 @@ export default class FirstTimeFlow extends PureComponent {
|
||||
/>
|
||||
<Route
|
||||
path={INITIALIZE_UNLOCK_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<Unlock
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
onSubmit={this.handleUnlock}
|
||||
/>
|
||||
)}
|
||||
|
@ -52,9 +52,9 @@ export default class SeedPhrase extends PureComponent {
|
||||
<Route
|
||||
exact
|
||||
path={INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<ConfirmSeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
seedPhrase={seedPhrase || verifiedSeedPhrase}
|
||||
/>
|
||||
)}
|
||||
@ -62,9 +62,9 @@ export default class SeedPhrase extends PureComponent {
|
||||
<Route
|
||||
exact
|
||||
path={INITIALIZE_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<RevealSeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
seedPhrase={seedPhrase || verifiedSeedPhrase}
|
||||
/>
|
||||
)}
|
||||
@ -72,9 +72,9 @@ export default class SeedPhrase extends PureComponent {
|
||||
<Route
|
||||
exact
|
||||
path={INITIALIZE_BACKUP_SEED_PHRASE_ROUTE}
|
||||
render={props => (
|
||||
render={routeProps => (
|
||||
<RevealSeedPhrase
|
||||
{ ...props }
|
||||
{ ...routeProps }
|
||||
seedPhrase={seedPhrase || verifiedSeedPhrase}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user