Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123107744
UsageTabButton.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
Thu, Jul 24, 22:17
Size
681 B
Mime Type
text/x-java
Expires
Sat, Jul 26, 22:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27637948
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
UsageTabButton.js
View Options
import
React
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
TabButton
from
'rsg-components/TabButton'
;
import
isEmpty
from
'lodash/isEmpty'
;
var
UsageTabButton
=
function
UsageTabButton
(
props
)
{
var
component
=
props
.
props
;
var
showButton
=
!
isEmpty
(
component
.
props
)
||
!
isEmpty
(
component
.
methods
);
return
showButton
?
/*#__PURE__*/
React
.
createElement
(
TabButton
,
props
,
"Props & methods"
)
:
null
;
};
UsageTabButton
.
propTypes
=
{
onClick
:
PropTypes
.
func
.
isRequired
,
name
:
PropTypes
.
string
.
isRequired
,
props
:
PropTypes
.
shape
({
props
:
PropTypes
.
array
,
methods
:
PropTypes
.
array
}).
isRequired
,
active
:
PropTypes
.
bool
};
export
default
UsageTabButton
;
Event Timeline
Log In to Comment