|
|
@ -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]; |
|
|
|
}; |
|
|
|
}; |
|
|
|