@@ -35,6 +35,7 @@ import twoTapIcon from '#resources/icons/2_Tap_Black.png';
3535import threeTapIcon from '#resources/icons/3_Tap_Black.png' ;
3636import angularTapIcon from '#resources/icons/tap_icon_angular.png' ;
3737import swipeIcon from '#resources/icons/swipeleft_icon_black.png' ;
38+ import check from '#resources/icons/tick_green_on_white.png' ;
3839
3940export function valueSelector < T > ( item : { value : T } ) {
4041 return item . value ;
@@ -81,6 +82,7 @@ export type IconKey = 'add-outline'
8182 | 'ban-outline'
8283 | 'check'
8384 | 'close-outline'
85+ | 'checkmark-outline'
8486 | 'egg-outline'
8587 | 'ellipse-outline'
8688 | 'flag-outline'
@@ -131,7 +133,7 @@ function getPngIcon(src: string, alt: string) {
131133 return element ;
132134}
133135
134- export const iconList : IconItem [ ] = [
136+ export const customOptionsOnlyIconList : IconItem [ ] = [
135137 {
136138 key : 'add-outline' ,
137139 label : 'Add' ,
@@ -147,6 +149,11 @@ export const iconList: IconItem[] = [
147149 label : 'Ban' ,
148150 component : IoBanOutline ,
149151 } ,
152+ {
153+ key : 'checkmark-outline' ,
154+ label : 'Checkmark' ,
155+ component : IoCheckmarkOutline ,
156+ } ,
150157 {
151158 key : 'close-outline' ,
152159 label : 'Close' ,
@@ -259,7 +266,9 @@ export const iconList: IconItem[] = [
259266 } ,
260267] ;
261268
262- const instructionsIconList : IconItem [ ] = [
269+ // Icon List for scenario pages only.
270+ // They need to be treated diffrently as they are loaded as pngs
271+ const scenarioOnlyIconList : IconItem [ ] = [
263272 {
264273 key : 'tap' ,
265274 label : 'Tap' ,
@@ -288,11 +297,11 @@ const instructionsIconList: IconItem[] = [
288297 {
289298 key : 'check' ,
290299 label : 'Check' ,
291- component : IoCheckmarkOutline ,
300+ component : getPngIcon ( check , 'check' ) ,
292301 } ,
293302] ;
294303
295- export const combinedIconList = [ ...instructionsIconList , ...iconList ] ;
304+ export const combinedIconList = [ ...scenarioOnlyIconList , ...customOptionsOnlyIconList ] ;
296305
297306export const iconMap = listToMap (
298307 combinedIconList ,
0 commit comments