Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123787907
ParaRenderer.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
Tue, Jul 29, 14:19
Size
971 B
Mime Type
text/x-java
Expires
Thu, Jul 31, 14:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27754967
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
ParaRenderer.js
View Options
import
React
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
Styled
from
'rsg-components/Styled'
;
export
var
styles
=
function
styles
(
_ref
)
{
var
space
=
_ref
.
space
,
color
=
_ref
.
color
,
fontFamily
=
_ref
.
fontFamily
,
fontSize
=
_ref
.
fontSize
;
return
{
para
:
{
marginTop
:
0
,
marginBottom
:
space
[
2
],
color
:
color
.
base
,
fontFamily
:
fontFamily
.
base
,
fontSize
:
fontSize
.
text
,
lineHeight
:
1.5
}
};
};
export
var
ParaRenderer
=
function
ParaRenderer
(
_ref2
)
{
var
classes
=
_ref2
.
classes
,
semantic
=
_ref2
.
semantic
,
children
=
_ref2
.
children
;
var
Tag
=
semantic
||
'div'
;
return
/*#__PURE__*/
React
.
createElement
(
Tag
,
{
className
:
classes
.
para
},
children
);
};
ParaRenderer
.
propTypes
=
{
classes
:
PropTypes
.
objectOf
(
PropTypes
.
string
.
isRequired
).
isRequired
,
semantic
:
PropTypes
.
oneOf
([
'p'
]),
children
:
PropTypes
.
node
.
isRequired
};
export
default
Styled
(
styles
)(
ParaRenderer
);
Event Timeline
Log In to Comment