Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
8711b95d
Commit
8711b95d
authored
6 years ago
by
Mihail Hagiu
Browse files
Options
Downloads
Patches
Plain Diff
docs(AuthorReviews): Wrote documentation for AuthorReviews component
parent
9867e98a
No related branches found
No related tags found
3 merge requests
!222
Sprint #26
,
!217
Sprint #26
,
!191
Hin 1116 documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js
+20
-8
20 additions, 8 deletions
...component-faraday-ui/src/contextualBoxes/AuthorReviews.js
with
20 additions
and
8 deletions
packages/component-faraday-ui/src/contextualBoxes/AuthorReviews.js
+
20
−
8
View file @
8711b95d
import
React
from
'
react
'
import
React
from
'
react
'
import
PropTypes
from
'
prop-types
'
import
{
withProps
,
compose
}
from
'
recompose
'
import
{
withProps
,
compose
}
from
'
recompose
'
import
{
ContextualBox
,
ReviewerReportAuthor
,
Row
,
Text
}
from
'
../
'
import
{
ContextualBox
,
ReviewerReportAuthor
,
Row
,
Text
}
from
'
../
'
...
@@ -15,14 +16,7 @@ const SubmittedReportsNumberForAuthorReviews = ({ reports }) => (
...
@@ -15,14 +16,7 @@ const SubmittedReportsNumberForAuthorReviews = ({ reports }) => (
<
/Row
>
<
/Row
>
)
)
const
AuthorReviews
=
({
const
AuthorReviews
=
({
journal
,
reports
,
token
,
getSignedUrl
})
=>
invitations
,
journal
,
reports
,
fragment
,
token
,
getSignedUrl
,
})
=>
reports
.
length
>
0
&&
(
reports
.
length
>
0
&&
(
<
ContextualBox
<
ContextualBox
label
=
"
Reviewer Reports
"
label
=
"
Reviewer Reports
"
...
@@ -43,4 +37,22 @@ const AuthorReviews = ({
...
@@ -43,4 +37,22 @@ const AuthorReviews = ({
<
/ContextualBox
>
<
/ContextualBox
>
)
)
AuthorReviews
.
propTypes
=
{
/** The list of available reports. */
reports
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
/** Returns the url of the selected file. */
getSignedUrl
:
PropTypes
.
func
,
/** Object containing the list of recommendations. */
journal
:
PropTypes
.
object
,
//eslint-disable-line
/** Contains the token of the currently logged user */
token
:
PropTypes
.
string
,
}
AuthorReviews
.
defaultProps
=
{
reports
:
[],
getSignedUrl
:
undefined
,
journal
:
{},
token
:
''
,
}
export
default
compose
(
withProps
())(
AuthorReviews
)
export
default
compose
(
withProps
())(
AuthorReviews
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment