Skip to content

Commit

Permalink
[no ci] Simplify upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Dec 4, 2023
1 parent e44f99e commit c65b7c5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docs/Upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you previously relied on the fact that the rows were not clickable by default

## Dark Theme Is Available By Default

In addition to the light theme, React-admin v5 includes a [dark theme](https://marmelab.com/react-admin/AppTheme.html#light-and-dark-themes), renders a theme switcher in the app bar, and chooses the default theme based on the user OS preferences.
In addition to the light theme, React-admin v5 includes a [dark theme](https://marmelab.com/react-admin/AppTheme.html#light-and-dark-themes), renders a theme switcher in the app bar, and chooses the default theme based on the user OS preferences.

If you don't need the dark mode feature, you'll have to explicitly disable it:

Expand All @@ -31,17 +31,9 @@ If you don't need the dark mode feature, you'll have to explicitly disable it:
</Admin>
```

If the `theme` prop is defined but not the `darkTheme` prop, the theme switcher button in the app bar isn't displayed:

```diff
-<Admin>
+<Admin theme={myMainTheme}>
...
</Admin>
```
## Links are now underlined by default
In the default theme, links are now underlined by default.

In the default theme, links are now underlined by default.

If you use the `<Link>` component from `react-admin`, and you want to remove the underline, set the `underline` prop to `none`:

Expand Down

0 comments on commit c65b7c5

Please sign in to comment.