1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +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:
Mark Stacey 2019-12-06 09:43:50 -04:00 committed by GitHub
parent e060e4c71f
commit b34c663712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 18 deletions

View File

@ -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}
/>
)}

View File

@ -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}
/>
)}

View File

@ -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}
/>
)}