Skip to content

Commit

Permalink
useLicenseVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Jun 19, 2024
1 parent 7466b03 commit cb0fa50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import {
SeriesContextProvider,
useChartContainerHooks,
} from '@mui/x-charts/internals';
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
import { getReleaseInfo } from '../internals/utils/releaseInfo';

const releaseInfo = getReleaseInfo();

export interface ChartContainerProProps extends ChartContainerProps {}

Expand Down Expand Up @@ -39,6 +43,8 @@ const ChartContainerPro = React.forwardRef(function ChartContainer(
children,
} = props;

useLicenseVerifier('x-charts-pro', releaseInfo);

const {
svgRef,
handleRef,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { Watermark } from '@mui/x-license';
import { Watermark } from '@mui/x-license/Watermark';
import { ResponsiveChartContainerProps } from '@mui/x-charts/ResponsiveChartContainer';
import { ResizableContainer, useChartContainerDimensions } from '@mui/x-charts/internals';
import { getReleaseInfo } from '../internals/utils/releaseInfo';
Expand Down

0 comments on commit cb0fa50

Please sign in to comment.