X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a2a93caf3e8c78fc93d47eec249086e26124a0be..180c2c37b635cbb7a33257d2ee9b4395553ce5e7:/src/components/details-panel-factory/items/project-item.tsx

diff --git a/src/components/details-panel-factory/items/project-item.tsx b/src/components/details-panel-factory/items/project-item.tsx
index 02719f59bc..702aa17b2f 100644
--- a/src/components/details-panel-factory/items/project-item.tsx
+++ b/src/components/details-panel-factory/items/project-item.tsx
@@ -3,26 +3,23 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from 'react';
-import { IconTypes } from '../../icon/icon';
-import Attribute from '../../attribute/attribute';
-import AbstractItem from './abstract-item';
+import { ProjectIcon } from '../../icon/icon';
+import { Attribute } from '../../attribute/attribute';
+import { AbstractItem } from './abstract-item';
 import { ProjectResource } from '../../../models/project';
 import { formatDate } from '../../../common/formatters';
+import { ResourceKind } from '../../../models/resource';
+import { resourceLabel } from '../../../common/labels';
 
-export default class ProjectItem extends AbstractItem<ProjectResource> {
+export class ProjectItem extends AbstractItem<ProjectResource> {
 
-    constructor(item: ProjectResource) {
-        super(item);
-        console.log('item: ', this.item);
+    getIcon(className?: string) {
+        return <ProjectIcon className={className} />;
     }
 
-    getIcon(): IconTypes {
-        return IconTypes.FOLDER;
-    }
-
-    buildDetails(): React.ReactElement<any> {
+    buildDetails() {
         return <div>
-            <Attribute label='Type' value={this.item.groupClass} />
+            <Attribute label='Type' value={resourceLabel(ResourceKind.Project)} />
             {/* Missing attr */}
             <Attribute label='Size' value='---' />
             <Attribute label='Owner' value={this.item.ownerUuid} />
@@ -33,4 +30,4 @@ export default class ProjectItem extends AbstractItem<ProjectResource> {
             <Attribute label='Description' value={this.item.description} />
         </div>;
     }
-}
\ No newline at end of file
+}
