Skip to content

Commit

Permalink
[core] Batch small changes (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Feb 8, 2021
1 parent c6ef4ee commit 5fff018
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/data-grid/filtering/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const filterModel: FilterModel = {
};
```

{{"demo": "pages/components/data-grid/filtering/MultiFilteringWithOrGrid.js", "bg": "inline"}}
{{"demo": "pages/components/data-grid/filtering/MultiFilteringWithOrGrid.js", "bg": "inline", "disableAd": true}}

### apiRef <span class="pro"></span>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/data-grid/rows/rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This is an imperative API that is designed to solve the previous two limitations

The following demo updates the rows every 200ms.

{{"demo": "pages/components/data-grid/rows/ApiRefRowsGrid.js", "bg": "inline"}}
{{"demo": "pages/components/data-grid/rows/ApiRefRowsGrid.js", "bg": "inline", "disableAd": true}}

## Row height

Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/src/stories/grid-sorting.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export const ServerSideSorting = () => {
);

// We use `useMemo` here, to keep the same ref and not trigger another sort on the next rendering
const sortBy: SortModel = React.useMemo(() => [{ field: 'age', sort: 'desc' }], []);
const sortModel: SortModel = React.useMemo(() => [{ field: 'age', sort: 'desc' }], []);

return (
<div className="grid-container">
Expand All @@ -425,7 +425,7 @@ export const ServerSideSorting = () => {
onSortModelChange={onSortModelChange}
sortingMode="server"
disableMultipleColumnsSorting
sortModel={sortBy}
sortModel={sortModel}
loading={loading}
/>
</div>
Expand Down

0 comments on commit 5fff018

Please sign in to comment.