add all icons to icon component, refactor code and change icons
[arvados-workbench2.git] / src / components / details-panel-factory / items / empty-item.tsx
index 38ef96787fda7eb6bf5cc1abfa47349f0391c65a..356ccc2cf9a3e5d91e918a4263dcaea1adf3fd8d 100644 (file)
@@ -3,19 +3,19 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from 'react';
-import { IconTypes } from '../../icon/icon';
+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<EmptyResource> {
     
-    getIcon(): IconTypes {
-        return IconTypes.INBOX;
+    getIcon(className?: string): React.ReactElement<any> {
+        return ProjectsIcon(className);
     }
 
     buildDetails(): React.ReactElement<any> {
-        return <EmptyState icon={IconTypes.RATE_REVIEW}
+        return <EmptyState icon={DefaultIcon}
             message='Select a file or folder to view its details.' />;
     }
 }
\ No newline at end of file