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

Fix typos in Theming doc #5546

Merged
merged 3 commits into from
Nov 18, 2020
Merged

Fix typos in Theming doc #5546

merged 3 commits into from
Nov 18, 2020

Conversation

DjebbZ
Copy link
Contributor

@DjebbZ DjebbZ commented Nov 18, 2020

  • typo
  • no error page in example, so I removed the mention in the text
  • I added a comment in the text itself, another occurrence of something mentioned in text that doesn't appear in code.

So I guess you have some fixing to do before merging.

- typo
- no error page in example, so I removed the mention in the text
- I added a comment in the text itself, another occurrence of something mentioned in text that doesn't appear in code.

So I guess you have some fixing to do before merging.
docs/Theming.md Outdated
@@ -387,7 +387,7 @@ const App = () => (
);
```

Your custom layout can extend the default `<Layout>` component if you only want to override the sidebar, the appBar, the menu, the notification component, or the error page. For instance:
Your custom layout can extend the default `<Layout>` component if you only want to override the sidebar, the appBar, the menu or the notification component. For instance:
Copy link
Member

Choose a reason for hiding this comment

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

Even though the example doesn't show how to change the error page, the layout has this role, so you should revert that change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 63c2d5f

docs/Theming.md Outdated
@@ -890,7 +890,7 @@ const App = () => (

The `MenuItemLink` component make use of the React Router [NavLink](https://reacttraining.com/react-router/web/api/NavLink) component, hence allowing to customize its style when it targets the current page.

If the default active style does not suit your tastes, you can override it by passing your own `classes`:
If the default active style does not suit your tastes, you can override it by passing your own `classes`: // the code below doesn't use the `classes` prop
Copy link
Member

Choose a reason for hiding this comment

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

The code below, introduced in 8fcd609, doesn't teach anything about classes and doesn't show anything more than the previous snippet. It and should be removed, together with the entire sentence "if the default active style...".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 07e7ed2

@fzaninotto fzaninotto merged commit 5f64abb into marmelab:master Nov 18, 2020
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 3.10.2 milestone Nov 18, 2020
@DjebbZ DjebbZ deleted the patch-5 branch November 18, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants