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
3ba02811
Commit
3ba02811
authored
6 years ago
by
Anca Ursachi
Browse files
Options
Downloads
Plain Diff
docs(pullFromBranch):
parents
65b4fb7f
b5c5ae40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!222
Sprint #26
,
!217
Sprint #26
,
!191
Hin 1116 documentation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/component-faraday-ui/src/Tabs.js
+3
-3
3 additions, 3 deletions
packages/component-faraday-ui/src/Tabs.js
packages/component-faraday-ui/src/WizardAuthors.js
+31
-1
31 additions, 1 deletion
packages/component-faraday-ui/src/WizardAuthors.js
with
34 additions
and
4 deletions
packages/component-faraday-ui/src/Tabs.js
+
3
−
3
View file @
3ba02811
import
PropTypes
from
'
prop-types
'
import
{
compose
,
withStateHandlers
}
from
'
recompose
'
const
Tabs
=
({
items
,
selectedTab
,
changeTab
,
children
})
=>
const
Tabs
=
({
items
,
selectedTab
=
2
,
changeTab
,
children
})
=>
children
({
selectedTab
,
changeTab
})
Tabs
.
prop
t
ypes
=
{
Tabs
.
prop
T
ypes
=
{
/** The selected tab. */
selectedTab
:
PropTypes
.
number
,
/** Handler to change the tab. */
changeTab
:
PropTypes
.
func
,
}
Tabs
.
defaultProp
=
{
Tabs
.
defaultProp
s
=
{
selectedTab
:
0
,
changeTab
:
()
=>
{},
}
...
...
This diff is collapsed.
Click to expand it.
packages/component-faraday-ui/src/WizardAuthors.js
+
31
−
1
View file @
3ba02811
import
React
,
{
Fragment
}
from
'
react
'
import
PropTypes
from
'
prop-types
'
import
styled
from
'
styled-components
'
import
React
,
{
Fragment
}
from
'
react
'
import
{
th
}
from
'
@pubsweet/ui-toolkit
'
import
{
omit
,
isBoolean
,
get
}
from
'
lodash
'
import
{
compose
,
withState
,
withHandlers
}
from
'
recompose
'
...
...
@@ -223,6 +224,35 @@ export default compose(
}),
)(
WizardAuthors
)
WizardAuthors
.
propTypes
=
{
authors
:
PropTypes
.
arrayOf
(
PropTypes
.
object
),
/** Function used for draging authors. */
moveAuthor
:
PropTypes
.
func
,
/** Funtion used for adding new authors. */
addNewAuthor
:
PropTypes
.
func
,
/** Function used for deleting authors. */
deleteAuthor
:
PropTypes
.
func
,
/** Function used for selecting authors for edit. */
setAuthorEdit
:
PropTypes
.
func
,
/** Function used for saving new authors. */
saveNewAuthor
:
PropTypes
.
func
,
/** Function used for editing authors. */
editExistingAuthor
:
PropTypes
.
func
,
/** Function used for submiting authors. */
authorEditorSubmit
:
PropTypes
.
func
,
}
WizardAuthors
.
defaultProps
=
{
authors
:
[],
moveAuthor
:
()
=>
{},
addNewAuthor
:
()
=>
{},
deleteAuthor
:
()
=>
{},
setAuthorEdit
:
()
=>
{},
saveNewAuthor
:
()
=>
{},
editExistingAuthor
:
()
=>
{},
authorEditorSubmit
:
()
=>
{},
}
// #region styles
const
SortableContainer
=
styled
.
div
`
background-color:
${
th
(
'
colorBackground
'
)}
;
...
...
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