Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions branch-step-05-solution/src/views/PokemonPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Relay from 'react-relay'
import { Link } from 'react-router'
import { Link, withRouter } from 'react-router'
import PokemonCard from '../components/PokemonCard'
import CreatePokemonMutation from '../mutations/CreatePokemonMutation'
import deleteIcon from '../assets/delete.svg'
Expand Down Expand Up @@ -75,7 +75,7 @@ class PokemonPage extends React.Component {
}

export default Relay.createContainer(
PokemonPage,
withRouter(PokemonPage),
{
initialVariables: {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions branch-step-06-solution/src/views/PokemonPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Relay from 'react-relay'
import { Link } from 'react-router'
import { Link, withRouter } from 'react-router'
import PokemonCard from '../components/PokemonCard'
import CreatePokemonMutation from '../mutations/CreatePokemonMutation'
import DeletePokemonMutation from '../mutations/DeletePokemonMutation'
Expand Down Expand Up @@ -86,7 +86,7 @@ class PokemonPage extends React.Component {
}

export default Relay.createContainer(
PokemonPage,
withRouter(PokemonPage),
{
initialVariables: {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions branch-step-06/src/views/PokemonPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Relay from 'react-relay'
import { Link } from 'react-router'
import { Link, withRouter } from 'react-router'
import PokemonCard from '../components/PokemonCard'
import CreatePokemonMutation from '../mutations/CreatePokemonMutation'
import deleteIcon from '../assets/delete.svg'
Expand Down Expand Up @@ -75,7 +75,7 @@ class PokemonPage extends React.Component {
}

export default Relay.createContainer(
PokemonPage,
withRouter(PokemonPage),
{
initialVariables: {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions branch-step-07-solution/src/views/PokemonPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Relay from 'react-relay'
import { Link } from 'react-router'
import { Link, withRouter } from 'react-router'
import PokemonCard from '../components/PokemonCard'
import CreatePokemonMutation from '../mutations/CreatePokemonMutation'
import DeletePokemonMutation from '../mutations/DeletePokemonMutation'
Expand Down Expand Up @@ -97,7 +97,7 @@ class PokemonPage extends React.Component {
}

export default Relay.createContainer(
PokemonPage,
withRouter(PokemonPage),
{
initialVariables: {
id: null,
Expand Down
4 changes: 2 additions & 2 deletions branch-step-07/src/views/PokemonPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import Relay from 'react-relay'
import { Link } from 'react-router'
import { Link, withRouter } from 'react-router'
import PokemonCard from '../components/PokemonCard'
import CreatePokemonMutation from '../mutations/CreatePokemonMutation'
import DeletePokemonMutation from '../mutations/DeletePokemonMutation'
Expand Down Expand Up @@ -86,7 +86,7 @@ class PokemonPage extends React.Component {
}

export default Relay.createContainer(
PokemonPage,
withRouter(PokemonPage),
{
initialVariables: {
id: null,
Expand Down