Skip to content
Snippets Groups Projects

Hin 1020

Merged Tania Fecheta requested to merge hin-1020 into develop
4 files
+ 5
21
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -5,17 +5,17 @@ import { connect } from 'react-redux'
import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import { withRouter } from 'react-router-dom'
import { compose, setDisplayName, withHandlers } from 'recompose'
import { compose, setDisplayName, withHandlers, withProps } from 'recompose'
import { ManuscriptCard, Row } from 'pubsweet-component-faraday-ui'
import { canViewReports } from 'pubsweet-component-faraday-selectors'
import withVersion from './withVersion'
const DashboardItem = compose(
withVersion,
connect((state, { collection }) => ({
canViewReports: canViewReports(state, get(collection, 'id', '')),
})),
withProps(({ collection }) => ({
fragment: get(collection, 'currentVersion', {}),
})),
)(ManuscriptCard)
const DashboardItems = ({ list, onClick, deleteProject, canViewReports }) => (