Fixed props
This commit is contained in:
@@ -8,7 +8,7 @@ import styles from './PublishingInfo.scss';
|
|||||||
|
|
||||||
class PublishingInfo extends React.Component {
|
class PublishingInfo extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
collaborators: PropTypes.object.isRequired,
|
collaborators: PropTypes.array.isRequired,
|
||||||
createdAt: PropTypes.string.isRequired,
|
createdAt: PropTypes.string.isRequired,
|
||||||
createdBy: PropTypes.object.isRequired,
|
createdBy: PropTypes.object.isRequired,
|
||||||
updatedAt: PropTypes.string.isRequired,
|
updatedAt: PropTypes.string.isRequired,
|
||||||
@@ -21,6 +21,7 @@ class PublishingInfo extends React.Component {
|
|||||||
<Flex className={ styles.avatarLine }>
|
<Flex className={ styles.avatarLine }>
|
||||||
{ this.props.collaborators.reverse().map(user => (
|
{ this.props.collaborators.reverse().map(user => (
|
||||||
<Avatar
|
<Avatar
|
||||||
|
key={ `avatar-${user.id}` }
|
||||||
src={ user.avatarUrl }
|
src={ user.avatarUrl }
|
||||||
size={ 26 }
|
size={ 26 }
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user