diff --git a/plugins/cad/src/components/ResourceEditorDialog/components/ParametricFirstClassEditors/partial/selectorRosters.ts b/plugins/cad/src/components/ResourceEditorDialog/components/ParametricFirstClassEditors/partial/selectorRosters.ts index 374e3caf..50fdbe3d 100644 --- a/plugins/cad/src/components/ResourceEditorDialog/components/ParametricFirstClassEditors/partial/selectorRosters.ts +++ b/plugins/cad/src/components/ResourceEditorDialog/components/ParametricFirstClassEditors/partial/selectorRosters.ts @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { PxeConfigurationFactory } from '../../PxeParametricEditor/configuration'; import { PxeValueType } from '../../PxeParametricEditor/types/PxeConfiguration.types'; diff --git a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/PxeExpandedSectionContext.ts b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/PxeExpandedSectionContext.ts index 28ee9946..4e39d042 100644 --- a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/PxeExpandedSectionContext.ts +++ b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/PxeExpandedSectionContext.ts @@ -20,10 +20,10 @@ import { PxeExpandedSection, PxeExpandedSectionStateTuple } from './types/PxePar export const PxeExpandedSectionContext = createContext([undefined, noop]); -export const useAncestorExpandedSectionState = (): PxeExpandedSectionStateTuple => - useContext(PxeExpandedSectionContext); - export const useNewExpandedSectionState = (): PxeExpandedSectionStateTuple => { const [expandedSection, setExpandedSection] = useState(undefined); return useMemo(() => [expandedSection, setExpandedSection], [expandedSection]); }; + +export const useAncestorExpandedSectionState = (): PxeExpandedSectionStateTuple => + useContext(PxeExpandedSectionContext); diff --git a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/nodes/layout/PxeRowLayoutNode.tsx b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/nodes/layout/PxeRowLayoutNode.tsx index 89390597..7157b190 100644 --- a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/nodes/layout/PxeRowLayoutNode.tsx +++ b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/nodes/layout/PxeRowLayoutNode.tsx @@ -14,11 +14,11 @@ * limitations under the License. */ +import { makeStyles } from '@material-ui/core'; import { isEqual } from 'lodash'; import React from 'react'; import { PxeRowLayoutEntry } from '../../types/PxeConfiguration.types'; import { PxeParametricEditorNode, PxeParametricEditorNodeProps } from '../../PxeParametricEditorNode'; -import { makeStyles } from '@material-ui/core'; import { useDiagnostics } from '../../PxeDiagnosticsContext'; const useStyles = makeStyles(() => ({ diff --git a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/utils/findInConfigurationEntries.ts b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/utils/findInConfigurationEntries.ts index aecd5079..cf1845d3 100644 --- a/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/utils/findInConfigurationEntries.ts +++ b/plugins/cad/src/components/ResourceEditorDialog/components/PxeParametricEditor/utils/findInConfigurationEntries.ts @@ -13,8 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { PxeConfigurationEntry } from '../types/PxeConfiguration.types'; + import { isArray } from 'lodash'; +import { PxeConfigurationEntry } from '../types/PxeConfiguration.types'; import { isLayoutNode, isSectionNode } from './nodePredicates'; type SearchOptions = {