Skip to content

Commit 70ac58e

Browse files
tidy(ui): remove unused props
1 parent e653837 commit 70ac58e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

invokeai/frontend/web/src/features/nodes/components/flow/nodes/common/NonInvocationNodeWrapper.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ChakraProps } from '@invoke-ai/ui-library';
22
import { Box, useGlobalMenuClose } from '@invoke-ai/ui-library';
33
import { useAppSelector } from 'app/store/storeHooks';
44
import { useIsWorkflowEditorLocked } from 'features/nodes/hooks/useIsWorkflowEditorLocked';
5-
import { useMouseOverFormField, useMouseOverNode } from 'features/nodes/hooks/useMouseOverNode';
5+
import { useMouseOverNode } from 'features/nodes/hooks/useMouseOverNode';
66
import { useNodeExecutionState } from 'features/nodes/hooks/useNodeExecutionState';
77
import { useZoomToNode } from 'features/nodes/hooks/useZoomToNode';
88
import { selectNodeOpacity } from 'features/nodes/store/workflowSettingsSlice';
@@ -17,14 +17,11 @@ type NonInvocationNodeWrapperProps = PropsWithChildren & {
1717
nodeId: string;
1818
selected: boolean;
1919
width?: ChakraProps['w'];
20-
isMissingTemplate?: boolean;
2120
};
2221

2322
const NonInvocationNodeWrapper = (props: NonInvocationNodeWrapperProps) => {
24-
const { nodeId, width, children, isMissingTemplate, selected } = props;
25-
// Skip needsUpdate check since we don't have invocation context
23+
const { nodeId, width, children, selected } = props;
2624
const mouseOverNode = useMouseOverNode(nodeId);
27-
const mouseOverFormField = useMouseOverFormField(nodeId);
2825
const zoomToNode = useZoomToNode(nodeId);
2926
const isLocked = useIsWorkflowEditorLocked();
3027

@@ -71,8 +68,6 @@ const NonInvocationNodeWrapper = (props: NonInvocationNodeWrapperProps) => {
7168
opacity={opacity}
7269
data-is-editor-locked={isLocked}
7370
data-is-selected={selected}
74-
data-is-mouse-over-form-field={mouseOverFormField.isMouseOverFormField}
75-
data-status={isMissingTemplate ? 'error' : undefined}
7671
>
7772
<Box sx={shadowsSx} />
7873
<Box sx={inProgressSx} data-is-in-progress={isInProgress} />

0 commit comments

Comments
 (0)