feat: add missing propTypes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import CssBaseline from '@mui/material/CssBaseline';
|
||||
import { ThemeProvider as BaseThemeProvider } from '@mui/material/styles';
|
||||
import clone from 'lodash/clone';
|
||||
@@ -24,6 +25,7 @@ const customizeTheme = (theme, config) => {
|
||||
|
||||
return shallowDefaultTheme;
|
||||
};
|
||||
|
||||
const ThemeProvider = ({ children, ...props }) => {
|
||||
const { data: automatischInfo, isPending: isAutomatischInfoPending } =
|
||||
useAutomatischInfo();
|
||||
@@ -53,4 +55,8 @@ const ThemeProvider = ({ children, ...props }) => {
|
||||
);
|
||||
};
|
||||
|
||||
ThemeProvider.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
};
|
||||
|
||||
export default ThemeProvider;
|
||||
|
Reference in New Issue
Block a user