Skip to content

Commit

Permalink
feat(mespapiers): Add expiration information next to date qualifications
Browse files Browse the repository at this point in the history
  • Loading branch information
PolariTOON committed Dec 1, 2022
1 parent 90cd7fe commit a557068
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/cozy-mespapiers-lib/src/components/Papers/PaperItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { makeStyles } from 'cozy-ui/transpiled/react/styles'

import { useMultiSelection } from '../Hooks/useMultiSelection'
import RenameInput from './Renaming/RenameInput'
import PaperItemAnnotation from './PaperItemAnnotation'

const useStyles = makeStyles(() => ({
checkbox: {
Expand Down Expand Up @@ -84,9 +85,14 @@ const PaperItem = ({
)
}

const secondaryText = `${contactNames ? contactNames : ''}${
contactNames && paperDate ? ' · ' : ''
}${paperDate ? paperDate : ''}`
const secondaryText = (
<>
{contactNames ? contactNames : ''}
{contactNames && paperDate ? ' · ' : ''}
{paperDate ? paperDate : ''}
<PaperItemAnnotation file={paper} />
</>
)

return (
<>
Expand Down

0 comments on commit a557068

Please sign in to comment.