X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/98d4fa453583e340187988f024c9a65cb47e332d..180c2c37b635cbb7a33257d2ee9b4395553ce5e7:/src/components/details-panel-factory/items/empty-item.tsx

diff --git a/src/components/details-panel-factory/items/empty-item.tsx b/src/components/details-panel-factory/items/empty-item.tsx
index 5d6e3d43..b9a48723 100644
--- a/src/components/details-panel-factory/items/empty-item.tsx
+++ b/src/components/details-panel-factory/items/empty-item.tsx
@@ -3,23 +3,19 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from 'react';
-import { IconTypes } from '../../icon/icon';
-import AbstractItem from './abstract-item';
-import EmptyState from '../../empty-state/empty-state';
+import { DefaultIcon, ProjectsIcon } from '../../icon/icon';
+import { AbstractItem } from './abstract-item';
+import { EmptyState } from '../../empty-state/empty-state';
 import { EmptyResource } from '../../../models/empty';
 
-export default class EmptyItem extends AbstractItem {
+export class EmptyItem extends AbstractItem<EmptyResource> {
 
-    constructor(item: EmptyResource) {
-        super(item);
+    getIcon(className?: string) {
+        return <ProjectsIcon className={className} />;
     }
 
-    getIcon(): IconTypes {
-        return IconTypes.FOLDER;
-    }
-
-    buildDetails(): React.ReactElement<any> {
-        return <EmptyState icon={IconTypes.ANNOUNCEMENT}
+    buildDetails() {
+        return <EmptyState icon={DefaultIcon}
             message='Select a file or folder to view its details.' />;
     }
-}
\ No newline at end of file
+}
