diff --git a/docs/data/material/components/drawers/ResponsiveDrawer.js b/docs/data/material/components/drawers/ResponsiveDrawer.js index 1927642f9119ef..1f02058cad5453 100644 --- a/docs/data/material/components/drawers/ResponsiveDrawer.js +++ b/docs/data/material/components/drawers/ResponsiveDrawer.js @@ -59,6 +59,7 @@ function ResponsiveDrawer(props) { ); + // Remove this const when copying and pasting into your project. const container = window !== undefined ? () => window().document.body : undefined; return ( @@ -158,7 +159,7 @@ function ResponsiveDrawer(props) { ResponsiveDrawer.propTypes = { /** * Injected by the documentation to work in an iframe. - * You won't need it on your project. + * Remove this when copying and pasting into your project. */ window: PropTypes.func, }; diff --git a/docs/data/material/components/drawers/ResponsiveDrawer.tsx b/docs/data/material/components/drawers/ResponsiveDrawer.tsx index cb687178412270..e6363a1136e21b 100644 --- a/docs/data/material/components/drawers/ResponsiveDrawer.tsx +++ b/docs/data/material/components/drawers/ResponsiveDrawer.tsx @@ -21,7 +21,7 @@ const drawerWidth = 240; interface Props { /** * Injected by the documentation to work in an iframe. - * You won't need it on your project. + * Remove this when copying and pasting into your project. */ window?: () => Window; } @@ -66,6 +66,7 @@ export default function ResponsiveDrawer(props: Props) { ); + // Remove this const when copying and pasting into your project. const container = window !== undefined ? () => window().document.body : undefined; return (