Skip to content

Commit

Permalink
Fix typo in ArticleCell code snippet of Tutorial 2 docs (#5695)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon-Sam committed Jun 6, 2022
1 parent 7b9c60e commit d5ef5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/tutorial/chapter2/routing-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ export const Failure = ({ error }) => (
<div style={{ color: 'red' }}>Error: {error.message}</div>
)

export const Success = ({ articles }) => (
export const Success = ({ article }) => (
// highlight-next-line
<Article article={article} />
)
Expand Down Expand Up @@ -784,7 +784,7 @@ export const Failure = ({ error }: CellFailureProps) => (
<div style={{ color: 'red' }}>Error: {error.message}</div>
)

export const Success = ({ articles }: CellSuccessProps<ArticleQuery>) => (
export const Success = ({ article }: CellSuccessProps<ArticleQuery>) => (
// highlight-next-line
<Article article={article} />
)
Expand Down

0 comments on commit d5ef5da

Please sign in to comment.