diff --git a/src/components/FolderPicker/FolderPickerListItem.tsx b/src/components/FolderPicker/FolderPickerListItem.tsx index 6f62dece4f..1e5df6665c 100644 --- a/src/components/FolderPicker/FolderPickerListItem.tsx +++ b/src/components/FolderPicker/FolderPickerListItem.tsx @@ -10,6 +10,7 @@ import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import type { File } from 'components/FolderPicker/types' +import { getFileNameAndExtension } from 'modules/filelist/helpers' import FileThumbnail from 'modules/filelist/icons/FileThumbnail' import styles from 'styles/folder-picker.styl' @@ -43,6 +44,8 @@ const FolderPickerListItem: FC = ({ ? `${formattedUpdatedAt}${formattedSize ? ` - ${formattedSize}` : ''}` : undefined + const { title } = getFileNameAndExtension(file, t) + return ( <> = ({ }} /> - + {showDivider && }