Skip to content
Snippets Groups Projects
Commit 7ce27f56 authored by Sinzeanu Demetriad's avatar Sinzeanu Demetriad
Browse files

docs(faraday-ui):

parent 5bc888c7
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!191Hin 1116 documentation
import PropTypes from 'prop-types'
import React, { Fragment } from 'react' import React, { Fragment } from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit' import { th } from '@pubsweet/ui-toolkit'
...@@ -94,6 +95,26 @@ const orderInvitations = i => { ...@@ -94,6 +95,26 @@ const orderInvitations = i => {
return 1 return 1
} }
ReviewersTable.propTypes = {
/** passes */
invitations: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string,
role: PropTypes.string,
type: PropTypes.string,
userId: PropTypes.string,
hasAnswer: PropTypes.bool,
invitedOn: PropTypes.number,
isAccepted: PropTypes.bool,
respondedOn: PropTypes.number,
}),
),
}
ReviewersTable.defaultProps = {
invitations: [],
}
export default compose( export default compose(
shouldUpdate( shouldUpdate(
({ invitations }, { invitations: nextInvitations }) => ({ invitations }, { invitations: nextInvitations }) =>
......
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