Skip to content
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

Merged
merged 5 commits into from
Nov 7, 2023
Merged

[Doc] Improve the Show section #9423

merged 5 commits into from
Nov 7, 2023

Conversation

fzaninotto
Copy link
Member

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

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Parameters
## Props

Copy link
Member Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! My bad

Copy link
Contributor

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
Copy link
Contributor

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 🙄 😁

@slax57 slax57 removed their assignment Nov 7, 2023
@slax57 slax57 added this to the 4.15.4 milestone Nov 7, 2023
@slax57 slax57 merged commit 4206f5f into master Nov 7, 2023
@slax57 slax57 deleted the doc-show branch November 7, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants