Refactor Page component

This commit is contained in:
anovazzi1 2024-02-21 16:57:40 -03:00
commit c319e18e15

View file

@ -35,7 +35,7 @@ const nodeTypes = {
genericNode: GenericNode, genericNode: GenericNode,
}; };
export default function Page({ export default function Page({
flow, flow,
view, view,
}: { }: {
@ -377,13 +377,7 @@ export default function Page({
zoomOnPinch={!view} zoomOnPinch={!view}
panOnDrag={!view} panOnDrag={!view}
proOptions={{ hideAttribution: true }} proOptions={{ hideAttribution: true }}
onPaneClick={onPaneClick} onPaneClick={onPaneClick}
onEdgeMouseEnter={(event, edge) =>
onMouseAction(edge, "#473A5C")
}
onEdgeMouseLeave={(event, edge) =>
onMouseAction(edge, "#555")
}
> >
<Background className="" /> <Background className="" />
{!view && ( {!view && (