Skip to content

Commit

Permalink
fix more things
Browse files Browse the repository at this point in the history
  • Loading branch information
apedroferreira committed Feb 17, 2025
1 parent db59965 commit c42bd20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/data/toolpad/core/components/crud/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ For more flexibility of customization, and especially if you want full control o

{{"demo": "CrudAdvanced.js", "height": 600, "iframe": true}}

The `CrudProvider` component is optional, but it can be used to easily pass a single `dataSource` to the CRUD page components inside it as context. Alternatively, each of those components can take its own `dataSource` as a prop.
The `CrudProvider` component is optional, but it can be used to easily pass a single `dataSource` to the CRUD subcomponents inside it as context. Alternatively, each of those components can take its own `dataSource` as a prop.

### `List` component

Expand Down
5 changes: 2 additions & 3 deletions packages/toolpad-studio/src/toolpad/OpenCodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
CircularProgress,
} from '@mui/material';
import CodeIcon from '@mui/icons-material/Code';
import { LoadingButton } from '@mui/lab';
import { useProjectApi } from '../projectApi';
import { CodeEditorFileType } from '../types';

Expand Down Expand Up @@ -111,7 +110,7 @@ export default function OpenCodeEditorButton({
</IconButton>
</Tooltip>
) : (
<LoadingButton
<Button
disabled={disabled || busy}
onClick={handleClick}
loading={busy}
Expand All @@ -121,7 +120,7 @@ export default function OpenCodeEditorButton({
{...rest}
>
{actionText}
</LoadingButton>
</Button>
)}
<MissingEditorDialog open={missingEditorDialog} onClose={setMissingEditorDialog} />
</React.Fragment>
Expand Down

0 comments on commit c42bd20

Please sign in to comment.