mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-23 07:59:15 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
8
web/node_modules/@material-ui/styles/es/useTheme/ThemeContext.js
generated
vendored
Normal file
8
web/node_modules/@material-ui/styles/es/useTheme/ThemeContext.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import React from 'react';
|
||||
const ThemeContext = React.createContext(null);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ThemeContext.displayName = 'ThemeContext';
|
||||
}
|
||||
|
||||
export default ThemeContext;
|
1
web/node_modules/@material-ui/styles/es/useTheme/index.js
generated
vendored
Normal file
1
web/node_modules/@material-ui/styles/es/useTheme/index.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export { default } from './useTheme';
|
12
web/node_modules/@material-ui/styles/es/useTheme/useTheme.js
generated
vendored
Normal file
12
web/node_modules/@material-ui/styles/es/useTheme/useTheme.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
import React from 'react';
|
||||
import ThemeContext from './ThemeContext';
|
||||
export default function useTheme() {
|
||||
const theme = React.useContext(ThemeContext);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
React.useDebugValue(theme);
|
||||
}
|
||||
|
||||
return theme;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue