Skip to content

Commit 29f5c2a

Browse files
author
Vikas Agarwal
committed
Fixing icon loading
1 parent 18637c6 commit 29f5c2a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/config/projectQuestions/crowd_testing.v1.0.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import _ from 'lodash'
2+
import React from 'react'
23
import { Icons } from 'appirio-tech-react-components'
4+
import SVGIconImage from '../../components/SVGIconImage'
35
import NumberText from '../../components/NumberText/NumberText'
46
import { findProduct} from '../projectWizard'
57

@@ -55,9 +57,9 @@ const sections = [
5557
fieldName: 'details.appDefinition.testType',
5658
type: 'tiled-radio-group',
5759
options: [
58-
{value: 'unstructured', title: 'Unstructured', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: ''},
59-
{value: 'structured', title: 'Structured', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: ''},
60-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: ''}
60+
{value: 'unstructured', title: 'Unstructured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-unstructured', fill: '#00000'}, desc: ''},
61+
{value: 'structured', title: 'Structured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-structured', fill: '#00000'}, desc: ''},
62+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: ''}
6163
]
6264
},
6365
{
@@ -273,9 +275,9 @@ export const basicSections = [
273275
fieldName: 'details.appDefinition.testType',
274276
type: 'tiled-radio-group',
275277
options: [
276-
{value: 'unstructured', title: 'Unstructured', icon: Icons.IconTechOutlineMobile, iconOptions: { fill: '#00000'}, desc: ''},
277-
{value: 'structured', title: 'Structured', icon: Icons.IconTechOutlineTablet, iconOptions: { fill: '#00000'}, desc: ''},
278-
{value: 'dontKnow', title: 'Do not know', icon: 'icon-dont-know', iconOptions: { fill: '#00000'}, desc: ''}
278+
{value: 'unstructured', title: 'Unstructured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-unstructured', fill: '#00000'}, desc: ''},
279+
{value: 'structured', title: 'Structured', icon: SVGIconImage, iconOptions: { filePath: 'icon-test-structured', fill: '#00000'}, desc: ''},
280+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: ''}
279281
]
280282
},
281283
{
@@ -325,7 +327,7 @@ export const basicSections = [
325327
{value: 'upto5', title: 'configurations', icon: NumberText, iconOptions: { number: '5' }, desc: 'or fewer'},
326328
{value: 'upTo10', title: 'configurations', icon: NumberText, iconOptions: { number: '10' }, desc: 'or fewer'},
327329
{value: 'upTo20', title: 'configurations', icon: NumberText, iconOptions: { number: '20' }, desc: 'or fewer'},
328-
{value: 'dontKnow', title: 'Do not know', icon: Icons.IconTechOutlineWatchApple, iconOptions: { fill: '#00000'}, desc: 'We will find the best fit for you.'}
330+
{value: 'dontKnow', title: 'Do not know', icon: SVGIconImage, iconOptions: { filePath: 'icon-dont-know', fill: '#00000'}, desc: 'We will find the best fit for you.'}
329331
]
330332
}
331333
{

0 commit comments

Comments
 (0)