-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
/
Copy pathGlobalStyles.js
30 lines (27 loc) · 1.26 KB
/
GlobalStyles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import { GlobalStyles as SystemGlobalStyles } from '@mui/system';
import defaultTheme from '../styles/defaultTheme';
import THEME_ID from '../styles/identifier';
function GlobalStyles(props) {
return <SystemGlobalStyles {...props} defaultTheme={defaultTheme} themeId={THEME_ID} />;
}
GlobalStyles.propTypes /* remove-proptypes */ = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The styles you want to apply globally.
*/
styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.array,
PropTypes.func,
PropTypes.number,
PropTypes.object,
PropTypes.string,
PropTypes.bool,
]),
};
export default GlobalStyles;