From 7a84b16aa6cd37e14f5698cd51ea76b5d1805388 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Sun, 12 Dec 2021 17:20:11 -0500 Subject: [PATCH] 18123: Use fa-users icon for groups Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/components/icon/icon.tsx | 8 +++++++- src/views-components/side-panel-tree/side-panel-tree.tsx | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/icon/icon.tsx b/src/components/icon/icon.tsx index f4a1b1f3a1..4543d8d9a6 100644 --- a/src/components/icon/icon.tsx +++ b/src/components/icon/icon.tsx @@ -66,10 +66,11 @@ import Computer from '@material-ui/icons/Computer'; // Import FontAwesome icons import { library } from '@fortawesome/fontawesome-svg-core'; -import { faPencilAlt, faSlash } from '@fortawesome/free-solid-svg-icons'; +import { faPencilAlt, faSlash, faUsers } from '@fortawesome/free-solid-svg-icons'; library.add( faPencilAlt, faSlash, + faUsers, ); export const ReadOnlyIcon = (props: any) => @@ -81,6 +82,11 @@ export const ReadOnlyIcon = (props: any) => ; +export const GroupsIcon = (props: any) => + + + ; + export const CollectionOldVersionIcon = (props: any) => }> diff --git a/src/views-components/side-panel-tree/side-panel-tree.tsx b/src/views-components/side-panel-tree/side-panel-tree.tsx index 95efee8cfb..e829483473 100644 --- a/src/views-components/side-panel-tree/side-panel-tree.tsx +++ b/src/views-components/side-panel-tree/side-panel-tree.tsx @@ -9,7 +9,7 @@ import { TreePicker, TreePickerProps } from "../tree-picker/tree-picker"; import { TreeItem } from "components/tree/tree"; import { ProjectResource } from "models/project"; import { ListItemTextIcon } from "components/list-item-text-icon/list-item-text-icon"; -import { ProcessIcon, ProjectIcon, FilterGroupIcon, FavoriteIcon, ProjectsIcon, ShareMeIcon, TrashIcon, PublicFavoriteIcon } from 'components/icon/icon'; +import { ProcessIcon, ProjectIcon, FilterGroupIcon, FavoriteIcon, ProjectsIcon, ShareMeIcon, TrashIcon, PublicFavoriteIcon, GroupsIcon } from 'components/icon/icon'; import { WorkflowIcon } from 'components/icon/icon'; import { activateSidePanelTreeItem, toggleSidePanelTreeItemCollapse, SIDE_PANEL_TREE, SidePanelTreeCategory } from 'store/side-panel-tree/side-panel-tree-actions'; import { openSidePanelContextMenu } from 'store/context-menu/context-menu-actions'; @@ -82,6 +82,8 @@ const getSidePanelIcon = (category: string) => { return PublicFavoriteIcon; case SidePanelTreeCategory.ALL_PROCESSES: return ProcessIcon; + case SidePanelTreeCategory.GROUPS: + return GroupsIcon; default: return ProjectIcon; } -- 2.30.2