Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123284515
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
Sat, Jul 26, 06:20
Size
681 B
Mime Type
text/x-java
Expires
Mon, Jul 28, 06:20 (2 d)
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