Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99561541
useTheme.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 25, 10:38
Size
375 B
Mime Type
text/x-java
Expires
Mon, Jan 27, 10:38 (2 d)
Engine
blob
Format
Raw Data
Handle
23823376
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
useTheme.js
View Options
import
*
as
React
from
'react'
;
import
{
useTheme
as
useThemeSystem
}
from
'@mui/system'
;
import
defaultTheme
from
'./defaultTheme'
;
export
default
function
useTheme
()
{
const
theme
=
useThemeSystem
(
defaultTheme
);
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
// eslint-disable-next-line react-hooks/rules-of-hooks
React
.
useDebugValue
(
theme
);
}
return
theme
;
}
Event Timeline
Log In to Comment