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] Fix Theming typos #8334

Merged
merged 3 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Authenticated.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The `<Authenticated>` component calls [the `useAuthState()` hook](./useAuthState

```jsx
import { Admin, CustomRoutes, Authenticated } from 'react-admin';
import { Route } from 'react-router';
import { Route } from 'react-router-dom';

const App = () => (
<Admin authProvider={authProvider}>
Expand Down
2 changes: 1 addition & 1 deletion docs/Layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ import Button from '@mui/material/Button';
import ErrorIcon from '@mui/icons-material/Report';
import History from '@mui/icons-material/History';
import { Title, useTranslate } from 'react-admin';
import { useLocation } from 'react-router';
import { useLocation } from 'react-router-dom';

export const MyError = ({
error,
Expand Down
2 changes: 1 addition & 1 deletion docs/List.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ import {
Datagrid,
TextField,
} from 'react-admin';
import { Route } from 'react-router';
import { Route } from 'react-router-dom';

const NewerBooks = () => (
<List
Expand Down
4 changes: 2 additions & 2 deletions docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The react-admin documentation for individual components also lists the classes a

## Reusable Components

To reuse the same style overrides in different locations across your application, create a reusable component using [the MUI `styled()` utility](https://mui.com/system/styled/). It's a function that creates a new component based on a source component and custom styles. The basinc syntax is `styled(Component)(styles) => Component` (where `styles` forllows the same syntax as the `sx` prop).
To reuse the same style overrides in different locations across your application, create a reusable component using [the MUI `styled()` utility](https://mui.com/system/styled/). It's a function that creates a new component based on a source component and custom styles. The basic syntax is `styled(Component)(styles) => Component` (where `styles` follows the same syntax as the `sx` prop).

For instance, to create a custom `<Datagrid>` component with the header style defined in the previous section:

Expand Down Expand Up @@ -1017,7 +1017,7 @@ import Button from '@mui/material/Button';
import ErrorIcon from '@mui/icons-material/Report';
import History from '@mui/icons-material/History';
import { Title, useTranslate } from 'react-admin';
import { useLocation } from 'react-router';
import { useLocation } from 'react-router-dom';

const MyError = ({
error,
Expand Down
2 changes: 1 addition & 1 deletion docs/WithPermissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `<WithPermissions>` component calls `useAuthenticated()` and `useGetPermissi
{% raw %}
```jsx
import { Admin, CustomRoutes, WithPermissions } from "react-admin";
import { Route } from "react-router";
import { Route } from "react-router-dom";

const App = () => (
<Admin authProvider={authProvider}>
Expand Down