@@ -188,24 +188,23 @@ export class FileTypeIcon extends React.Component<IFileTypeIconProps, {}> {
188
188
const iconImage = this . _getIconImageName ( ) ;
189
189
// Check if the image was found, otherwise a generic image will be returned
190
190
if ( typeof iconImage . image !== 'undefined' && iconImage . image !== null ) {
191
- // iconElm = <div style={{ display: 'inline-block' }} className={`ms-BrandIcon--${iconImage.size} ms-BrandIcon--${iconImage.image}`}></div>;
192
191
iconElm = < Icon iconType = { IconUIType . image } imageProps = { { className : `ms-BrandIcon--${ iconImage . size } ms-BrandIcon--${ iconImage . image } ` } } /> ;
193
192
} else {
194
193
// Return a generic image
195
194
let imgElm = < img /> ;
196
195
// Check the size of the generic image which has to be returned
197
196
switch ( iconImage . size ) {
198
197
case 'icon16' :
199
- imgElm = < img src = { ICON_GENERIC_16 } /> ;
198
+ imgElm = < Icon iconType = { IconUIType . image } imageProps = { { src : ICON_GENERIC_16 } } /> ;
200
199
break ;
201
200
case 'icon48' :
202
- imgElm = < img src = { ICON_GENERIC_48 } /> ;
201
+ imgElm = < Icon iconType = { IconUIType . image } imageProps = { { src : ICON_GENERIC_48 } } /> ;
203
202
break ;
204
203
case 'icon96' :
205
- imgElm = < img src = { ICON_GENERIC_96 } /> ;
204
+ imgElm = < Icon iconType = { IconUIType . image } imageProps = { { src : ICON_GENERIC_96 } } /> ;
206
205
break ;
207
206
default :
208
- imgElm = < img src = { ICON_GENERIC_16 } /> ;
207
+ imgElm = < Icon iconType = { IconUIType . image } imageProps = { { src : ICON_GENERIC_16 } } /> ;
209
208
break ;
210
209
}
211
210
@@ -218,7 +217,6 @@ export class FileTypeIcon extends React.Component<IFileTypeIconProps, {}> {
218
217
} else {
219
218
// Return the icon font element
220
219
const iconClass = this . _getIconClassName ( ) ;
221
- // iconElm = <i className={`ms-Icon ms-Icon--${iconClass}`} aria-hidden='true'></i>;
222
220
iconElm = < Icon iconName = { iconClass } /> ;
223
221
}
224
222
0 commit comments