diff --git a/src/landscape/components/LandscapeView.test.js b/src/landscape/components/LandscapeView.test.js
index b6e6a1c0d..a64d9ec5a 100644
--- a/src/landscape/components/LandscapeView.test.js
+++ b/src/landscape/components/LandscapeView.test.js
@@ -122,6 +122,7 @@ const baseViewTest = async (
description: `Description ${index}`,
size: 3456,
entryType: 'FILE',
+ resourceType: 'txt',
visualizations: { edges: [] },
},
},
@@ -233,6 +234,9 @@ test('LandscapeView: Display data', async () => {
const entriesList = within(sharedDataRegion.getByRole('list'));
const items = entriesList.getAllByRole('listitem');
expect(items.length).toBe(6);
+ const firstEntry = within(items[0]);
+ expect(firstEntry.getByText('Data Entry 0')).toBeInTheDocument();
+ expect(firstEntry.getByText('txt')).toBeInTheDocument();
// Boundary
expect(
diff --git a/src/sharedData/components/SharedDataEntryBase.js b/src/sharedData/components/SharedDataEntryBase.js
index 252da524d..2ca31effe 100644
--- a/src/sharedData/components/SharedDataEntryBase.js
+++ b/src/sharedData/components/SharedDataEntryBase.js
@@ -54,7 +54,8 @@ const SharedDataEntryBase = props => {
EntryTypeIcon,
DownloadComponent,
ShareComponent,
- info,
+ fileSize,
+ resourceType,
deleteTooltip,
} = props;
const [isEditingName, setIsEditingName] = useState(false);
@@ -173,7 +174,7 @@ const SharedDataEntryBase = props => {
@@ -203,26 +204,38 @@ const SharedDataEntryBase = props => {
/>
-
+
+
+ {resourceType}
+
+
- {info}
+ {fileSize}
+
-
+
{formatDate(i18n.resolvedLanguage, dataEntry.createdAt)}, by{' '}
{t('user.full_name', { user: dataEntry.createdBy })}
+
{
EntryTypeIcon={SharedFileIcon}
DownloadComponent={DownloadComponent}
ShareComponent={ShareComponent}
- info={filesize(sharedResource.dataEntry.size, { round: 0 })}
+ fileSize={filesize(sharedResource.dataEntry.size, { round: 0 })}
+ resourceType={sharedResource.dataEntry.resourceType}
>