Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100855387
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
Mon, Feb 3, 07:49
Size
319 B
Mime Type
text/x-java
Expires
Wed, Feb 5, 07:49 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24021436
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
useTheme.js
View Options
import
*
as
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
;
}
Event Timeline
Log In to Comment