From c25c914cc922d45eb17226b89da138b13dd74c2f Mon Sep 17 00:00:00 2001 From: Miggy Eusebio Date: Tue, 9 Aug 2022 11:01:42 -0600 Subject: [PATCH] Add more icons to the graph --- src/webviews/apps/plus/graph/GraphWrapper.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webviews/apps/plus/graph/GraphWrapper.tsx b/src/webviews/apps/plus/graph/GraphWrapper.tsx index c04bae6..eac448c 100644 --- a/src/webviews/apps/plus/graph/GraphWrapper.tsx +++ b/src/webviews/apps/plus/graph/GraphWrapper.tsx @@ -165,7 +165,7 @@ const debounceFrame = (func: DebouncableFn): DebouncedFn => { }; const getIconElements = (): { [key: string]: ReactElement } => { - const iconList = ['vm', 'cloud', 'tag']; + const iconList = ['vm', 'cloud', 'tag', 'inbox', 'check', 'chrome-minimize']; const elementLibrary: { [key: string]: ReactElement } = {}; iconList.forEach(iconKey => { elementLibrary[iconKey] = createElement('span', { className: `codicon codicon-${iconKey}` }); @@ -173,10 +173,10 @@ const getIconElements = (): { [key: string]: ReactElement } => { return elementLibrary; }; -const getIconElementLibrary = (): ((key: string, props: { [key: string]: string }) => ReactElement) => { +const getIconElementLibrary = (): ((key: string, props?: { [key: string]: string }) => ReactElement) => { const iconElementLibrary = getIconElements(); - return (iconKey: string, _props: { [propKey: string]: string }) => { + return (iconKey: string, _props?: { [propKey: string]: string }) => { return iconElementLibrary[iconKey]; }; };