Skip to content

Commit

Permalink
Merge pull request #8334 from marmelab/docs-typos
Browse files Browse the repository at this point in the history
[Doc] Fix Theming typos
  • Loading branch information
slax57 authored Nov 2, 2022
2 parents 4f89c66 + b533962 commit 56d98ba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
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

0 comments on commit 56d98ba

Please sign in to comment.