@@ -441,18 +441,18 @@ export default function transform(file: FileInfo, api: API, options?: Options):
441
441
let isInteractive = false ;
442
442
const typeNode = type . get ( ) ;
443
443
if ( typeNode . value . value . type === 'StringLiteral' ) {
444
- isInteractive = typeNode . value . value . value === 'Interactive ' ;
444
+ isInteractive = typeNode . value . value . value === 'Active ' ;
445
445
} else if ( typeNode . value . value . type === 'JSXExpressionContainer' ) {
446
446
const container = typeNode . value . value ;
447
447
if ( container . expression . type === 'StringLiteral' ) {
448
- isInteractive = typeNode . value . value . expression . value === 'Interactive ' ;
448
+ isInteractive = typeNode . value . value . expression . value === 'Active ' ;
449
449
} else if ( container . expression . type === 'MemberExpression' ) {
450
450
const expr = container . expression ;
451
- if ( expr . object . name === 'TableMode ' ) {
452
- if ( expr . property . type === 'Identifier' && expr . property . name === 'Interactive ' ) {
451
+ if ( expr . object . name === 'TableRowType ' ) {
452
+ if ( expr . property . type === 'Identifier' && expr . property . name === 'Active ' ) {
453
453
isInteractive = true ;
454
454
}
455
- if ( expr . property . type === 'StringLiteral' && expr . property . value === 'Interactive ' ) {
455
+ if ( expr . property . type === 'StringLiteral' && expr . property . value === 'Active ' ) {
456
456
isInteractive = true ;
457
457
}
458
458
}
@@ -464,9 +464,9 @@ export default function transform(file: FileInfo, api: API, options?: Options):
464
464
. find ( j . JSXOpeningElement )
465
465
. get ( )
466
466
. value . attributes . push ( j . jsxAttribute ( j . jsxIdentifier ( 'interactive' ) , null ) ) ;
467
- type . remove ( ) ;
468
- isDirty = true ;
469
467
}
468
+ type . remove ( ) ;
469
+ isDirty = true ;
470
470
}
471
471
} ) ;
472
472
}
0 commit comments