From f5daf0e9d822d77a009c159aaaefe09d8b430196 Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Fri, 21 May 2021 19:16:42 +0200 Subject: [PATCH] fix test:types --- .../premium-themes/onepirate/modules/views/AppAppBar.js | 8 ++++++++ .../premium-themes/onepirate/modules/views/AppAppBar.tsx | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.js b/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.js index 17d1b8a26e353b..47862d529e657e 100644 --- a/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.js +++ b/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.js @@ -1,4 +1,5 @@ import * as React from 'react'; +import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '@material-ui/styles'; @@ -78,4 +79,11 @@ function AppAppBar(props) { ); } +AppAppBar.propTypes = { + /** + * Override or extend the styles applied to the component. + */ + classes: PropTypes.object.isRequired, +}; + export default withStyles(styles)(AppAppBar); diff --git a/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.tsx b/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.tsx index 73ec87727e917f..d8bf2b9d2fd8fe 100644 --- a/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.tsx +++ b/docs/src/pages/premium-themes/onepirate/modules/views/AppAppBar.tsx @@ -1,8 +1,8 @@ import * as React from 'react'; import clsx from 'clsx'; -import { AppBarProps, WithStyles } from '@material-ui/core'; +import { AppBarProps } from '@material-ui/core'; import { Theme } from '@material-ui/core/styles'; -import { withStyles } from '@material-ui/styles'; +import { withStyles, WithStyles } from '@material-ui/styles'; import Link from '@material-ui/core/Link'; import AppBar from '../components/AppBar'; import Toolbar, { styles as toolbarStyles } from '../components/Toolbar';