Skip to content

Commit

Permalink
feat(ScanResultCardPDF): Improve readability filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Oct 31, 2024
1 parent 4767cb7 commit 2a151ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import Typography from 'cozy-ui/transpiled/react/Typography'

const ScanResultCardPDF = props => {
const { currentFile, handleSelectedFile } = props
// Replace all "_" with a space in the filename for better readability
const fileName = currentFile.name.replaceAll('_', ' ')

return (
<Card className="u-ta-center u-p-1 u-flex u-flex-column u-flex-justify-between">
<div className={styles['image-container']}>
<PdfOverview file={currentFile} />
<Typography className="u-mt-half">{currentFile.name}</Typography>
<Typography className="u-mt-half">{fileName}</Typography>
</div>
<Box display="flex" gridGap="1rem" marginTop="1rem">
<ScanResultCardPDFActions onCancel={handleSelectedFile} />
Expand Down

0 comments on commit 2a151ee

Please sign in to comment.