Browse Source

Add more icons to the graph

main
Miggy Eusebio 2 years ago
committed by Eric Amodio
parent
commit
c25c914cc9
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 3
- 3
src/webviews/apps/plus/graph/GraphWrapper.tsx View File

@ -165,7 +165,7 @@ const debounceFrame = (func: DebouncableFn): DebouncedFn => {
};
const getIconElements = (): { [key: string]: ReactElement<any> } => {
const iconList = ['vm', 'cloud', 'tag'];
const iconList = ['vm', 'cloud', 'tag', 'inbox', 'check', 'chrome-minimize'];
const elementLibrary: { [key: string]: ReactElement<any> } = {};
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];
};
};

Loading…
Cancel
Save