Skip to content

Commit

Permalink
[core] Improve license info deprecation message (#11974)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii authored Feb 7, 2024
1 parent c5cc556 commit 38dda58
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
15 changes: 7 additions & 8 deletions packages/x-data-grid-premium/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import './typeOverloads';

export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
/**
* @deprecated Use `@mui/x-license` package instead:
* @example import { LicenseInfo } from '@mui/x-license';
*/
export class LicenseInfo extends LicenseInfoExport {}

export * from '@mui/x-data-grid/components';
export * from '@mui/x-data-grid-pro/components';
export * from '@mui/x-data-grid/constants';
Expand Down
15 changes: 7 additions & 8 deletions packages/x-data-grid-pro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import './typeOverloads';

export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
/**
* @deprecated Use `@mui/x-license` package instead:
* @example import { LicenseInfo } from '@mui/x-license';
*/
export class LicenseInfo extends LicenseInfoExport {}

export * from '@mui/x-data-grid/components';
export * from '@mui/x-data-grid/constants';
export * from '@mui/x-data-grid/hooks';
Expand Down
15 changes: 7 additions & 8 deletions packages/x-date-pickers-pro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export {
/**
* @deprecated
* Use `@mui/x-license` package instead:
* import { LicenseInfo } from '@mui/x-license';
*/
LicenseInfo,
} from '@mui/x-license';
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
/**
* @deprecated Use `@mui/x-license` package instead:
* @example import { LicenseInfo } from '@mui/x-license';
*/
export class LicenseInfo extends LicenseInfoExport {}

export * from '@mui/x-date-pickers';

export * from './DateRangePickerDay';
Expand Down

0 comments on commit 38dda58

Please sign in to comment.