Skip to content

Commit

Permalink
[core] Remove deprecated usage of LicenseInfo (#3372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Apr 9, 2024
1 parent 63f2d1b commit 97b5eab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@mui/styles": "5.15.15",
"@mui/utils": "5.15.14",
"@mui/x-data-grid-pro": "7.1.1",
"@mui/x-license": "7.1.1",
"@toolpad/studio": "workspace:*",
"@trendmicro/react-interpolate": "0.5.5",
"@types/lodash": "4.17.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { loadCSS } from 'fg-loadcss/src/loadCSS';
import NextHead from 'next/head';
import PropTypes from 'prop-types';
import { useRouter } from 'next/router';
import { LicenseInfo } from '@mui/x-data-grid-pro';
import { LicenseInfo } from '@mui/x-license';
import PageContext from 'docs/src/modules/components/PageContext';
import GoogleAnalytics from 'docs/src/modules/components/GoogleAnalytics';
import { ThemeProvider } from 'docs/src/modules/components/ThemeContext';
Expand Down
4 changes: 1 addition & 3 deletions packages/toolpad-studio-components/src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
} from '@mui/x-data-grid-pro';
import {
Unstable_LicenseInfoProvider as LicenseInfoProvider,
Unstable_LicenseInfoProviderProps as LicenseInfoProviderProps,
MuiLicenseInfo,
} from '@mui/x-license';
import * as React from 'react';
import {
Expand Down Expand Up @@ -96,8 +96,6 @@ const DRAFT_ROW_MARKER = Symbol('draftRow');

const ACTIONS_COLUMN_FIELD = '___actions___';

type MuiLicenseInfo = LicenseInfoProviderProps['info'];

const LICENSE_INFO: MuiLicenseInfo = {
key: process.env.TOOLPAD_BUNDLED_MUI_X_LICENSE,
};
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97b5eab

Please sign in to comment.