Revert back to passing props manually

This commit is contained in:
peterkogo
2024-12-04 11:12:49 +01:00
parent 8b8ef2bffa
commit 3526963f0b
6 changed files with 127 additions and 34 deletions
@@ -21,27 +21,10 @@ export function BaseEdge({
interactionWidth = 20,
...props
}: BaseEdgeProps) {
// We are not allowed to pass these props to the path element otherwise we get a bunch of warnings
const {
animated,
selectable,
deletable,
data,
selected,
source,
target,
targetHandleId,
sourceHandleId,
targetPosition,
sourcePosition,
pathOptions,
...restProps
} = props as EdgeComponentWithPathOptions<any> & EdgeProps;
return (
<>
<path
{...restProps}
{...props}
id={id}
d={path}
fill="none"