-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[charts] Prepare ChartContainerPro
for future Zoom changes
#13532
Conversation
Deploy preview: https://deploy-preview-13532--material-ui-x.netlify.app/ |
522d4d9
to
c5595c0
Compare
packages/x-charts-pro/src/ChartContainerPro/ChartContainerPro.tsx
Outdated
Show resolved
Hide resolved
packages/x-charts-pro/src/ChartContainerPro/ChartContainerPro.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Flavien DELANGLE <[email protected]> Signed-off-by: Jose C Quintas Jr <[email protected]>
@@ -17,12 +17,10 @@ const ResponsiveChartContainerPro = React.forwardRef(function ResponsiveChartCon | |||
const { width: inWidth, height: inHeight, ...other } = props; | |||
const [containerRef, width, height] = useChartContainerDimensions(inWidth, inHeight); | |||
|
|||
useLicenseVerifier('x-charts-pro', releaseInfo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could effectively be moved in the the ChartContainerPro
, but I do not see where you added it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. I was tinkering with the license things 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though the Watermark
component runs it already, would we still need it?
export function Watermark(props: WatermarkProps) {
const { packageName, releaseInfo } = props;
const licenseStatus = useLicenseVerifier(packageName, releaseInfo);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the Watermark component runs it already
I did not know
would we still need it
Could be nice in the container since it does not have Watermark, and adding the watermark could add complication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: Jose C Quintas Jr <[email protected]> Co-authored-by: Flavien DELANGLE <[email protected]>
Signed-off-by: Jose C Quintas Jr <[email protected]> Co-authored-by: Flavien DELANGLE <[email protected]>
ChartContainerPro
for Zoom changesrelated #13405