Skip to content

Commit

Permalink
Tutorial: Use curly braces and return in ArticleCell Success (redwo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 18, 2022
1 parent e959669 commit a54f9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/tutorial/chapter2/routing-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,10 @@ export const Failure = ({ error }: CellFailureProps) => (
<div style={{ color: 'red' }}>Error: {error.message}</div>
)

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

</TabItem>
Expand Down

0 comments on commit a54f9ee

Please sign in to comment.