-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Improve the Show section #9423
Conversation
@@ -51,13 +51,56 @@ const PostShow = () => { | |||
|
|||
This custom Show view has no action buttons - it's up to you to add them in pure React. | |||
|
|||
**Tip**: Use [`<ShowBase>`](./ShowBase.md) instead of `useShowController` if you need a component version of that hook. | |||
|
|||
## Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Parameters | |
## Props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A hook doesn't have props.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! My bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header in the parameters table still says "Prop", just saying 🙄 😁
Co-authored-by: adrien guernier <adrien@marmelab.com>
@@ -51,13 +51,56 @@ const PostShow = () => { | |||
|
|||
This custom Show view has no action buttons - it's up to you to add them in pure React. | |||
|
|||
**Tip**: Use [`<ShowBase>`](./ShowBase.md) instead of `useShowController` if you need a component version of that hook. | |||
|
|||
## Parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header in the parameters table still says "Prop", just saying 🙄 😁
Problem
The chapters of the Show section don't list all possible props, have outdated screenshots, and generally don't put the things in the right order
Solution
Rewrite those chapters