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 old MUI import path in code snippets #9372

Merged
merged 1 commit into from
Oct 20, 2023
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
6 changes: 3 additions & 3 deletions docs/BoxStackGrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ It accepts all [the `sx` prop](./SX.md), which makes it easy to style:

{% raw %}
```jsx
import { Box } from '@material-ui/core';
import { Box } from '@mui/material';

const MyComponent = () => (
<Box
Expand Down Expand Up @@ -104,7 +104,7 @@ To learn more, read the [Material-UI Box documentation](https://mui.com/material
![Stack](./img/stack.webp)

```jsx
import { Stack } from '@material-ui/core';
import { Stack } from '@mui/material';

const Items = () => (
<Stack spacing={2}>
Expand Down Expand Up @@ -154,7 +154,7 @@ Use the `divider` prop to insert an element between each child.

{% raw %}
```jsx
import { Stack } from '@material-ui/core';
import { Stack } from '@mui/material';

export const DividerStack = () => (
<div>
Expand Down
2 changes: 1 addition & 1 deletion docs/FilterLiveSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To add a full-text search filter on customers, include `<FilterLiveSearch>` in a
{% raw %}
```tsx
import { List, FilterLiveSearch } from 'react-admin';
import { Card, CardContent } from '@material-ui/core';
import { Card, CardContent } from '@mui/material';
import { LastVisitedFilter, HasOrderedFilter, HasNewsletterFilter, SegmentFilter } from './filters';

const FilterSidebar = () => (
Expand Down
2 changes: 1 addition & 1 deletion docs/useLockOnCall.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use this hook in a toolbar, to let the user lock the record manually.
```jsx
import { Edit, SimpleForm, TextInput } from 'react-admin';
import { useLockOnMount } from '@react-admin/ra-realtime';
import { Alert, AlertTitle, Box, Button } from '@material-ui/core';
import { Alert, AlertTitle, Box, Button } from '@mui/material';

const PostAside = () => {
const [doLock, { data, error, isLoading }] = useLockOnCall();
Expand Down
2 changes: 1 addition & 1 deletion docs/useLockOnMount.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use this hook e.g. in an `<Edit>` component to lock the record so that it only a
```jsx
import { Edit, SimpleForm, TextInput } from 'react-admin';
import { useLockOnMount } from '@react-admin/ra-realtime';
import { Alert, AlertTitle, Box } from '@material-ui/core';
import { Alert, AlertTitle, Box } from '@mui/material';

const PostAside = () => {
const { isLocked, error, isLoading } = useLockOnMount();
Expand Down
Loading