1- import React from 'react' ;
21import Component from '@reach/component-component' ;
32import { FaRegClone , FaTrashAlt } from 'react-icons/fa' ;
43
54import defaultApiFetcher from '../utils/api.js' ;
65
7- import BooleanOp from './sqonPieces/BooleanOp' ;
8- import { isBooleanOp , removeSqonPath , setSqonAtPath , isEmptySqon } from './utils' ;
6+ import BooleanOp from './sqonPieces/BooleanOp.js ' ;
7+ import { isBooleanOp , removeSqonPath , setSqonAtPath , isEmptySqon } from './utils.js ' ;
98
109export default ( props ) => {
1110 const {
@@ -24,13 +23,13 @@ export default (props) => {
2423 isIndexReferenced = ( index ) => false ,
2524 isDeleting = false ,
2625 dependentIndices = [ ] ,
27- onSqonCheckedChange = ( ) => { } ,
28- onSqonDuplicate = ( ) => { } ,
29- onSqonRemove = ( ) => { } ,
30- onSqonChange = ( sqon ) => { } ,
31- onActivate = ( ) => { } ,
32- onDeleteConfirmed = ( ) => { } ,
33- onDeleteCanceled = ( ) => { } ,
26+ onSqonCheckedChange = ( ) => { } ,
27+ onSqonDuplicate = ( ) => { } ,
28+ onSqonRemove = ( ) => { } ,
29+ onSqonChange = ( sqon ) => { } ,
30+ onActivate = ( ) => { } ,
31+ onDeleteConfirmed = ( ) => { } ,
32+ onDeleteCanceled = ( ) => { } ,
3433 emptyEntryMessage = null ,
3534 } = props ;
3635
@@ -65,8 +64,8 @@ export default (props) => {
6564 ! isReferenced
6665 ? { }
6766 : {
68- background : referenceColor ,
69- }
67+ background : referenceColor ,
68+ }
7069 }
7170 />
7271 < div className = { `selectionContainer` } onClick = { onSqonCheckedChange } >
@@ -78,20 +77,20 @@ export default (props) => {
7877 { isEmptySqon ( syntheticSqon )
7978 ? emptyEntryMessage
8079 : isBooleanOp ( syntheticSqon ) && (
81- < BooleanOp
82- arrangerIndex = { arrangerIndex }
83- index = { 0 }
84- onFieldOpRemove = { onFieldOpRemove }
85- onChange = { onLogicalOpChanged }
86- sqon = { syntheticSqon }
87- FieldOpModifierContainer = { FieldOpModifierContainer }
88- apiFetcher = { apiFetcher }
89- getActiveExecutableSqon = { getActiveExecutableSqon }
90- getColorForReference = { getColorForReference }
91- isIndexReferenced = { isIndexReferenced }
92- referencesShouldHighlight = { isActiveSqon }
93- />
94- ) }
80+ < BooleanOp
81+ arrangerIndex = { arrangerIndex }
82+ index = { 0 }
83+ onFieldOpRemove = { onFieldOpRemove }
84+ onChange = { onLogicalOpChanged }
85+ sqon = { syntheticSqon }
86+ FieldOpModifierContainer = { FieldOpModifierContainer }
87+ apiFetcher = { apiFetcher }
88+ getActiveExecutableSqon = { getActiveExecutableSqon }
89+ getColorForReference = { getColorForReference }
90+ isIndexReferenced = { isIndexReferenced }
91+ referencesShouldHighlight = { isActiveSqon }
92+ />
93+ ) }
9594 </ div >
9695 </ div >
9796 </ div >
0 commit comments