Skip to content
Snippets Groups Projects
Commit 3ba02811 authored by Anca Ursachi's avatar Anca Ursachi
Browse files

docs(pullFromBranch):

parents 65b4fb7f b5c5ae40
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!191Hin 1116 documentation
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.proptypes = {
Tabs.propTypes = {
/** The selected tab. */
selectedTab: PropTypes.number,
/** Handler to change the tab. */
changeTab: PropTypes.func,
}
Tabs.defaultProp = {
Tabs.defaultProps = {
selectedTab: 0,
changeTab: () => {},
}
......
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')};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment