Skip to content

Commit

Permalink
Remove ondragover
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Mar 29, 2024
1 parent cdb725a commit b387b60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 0 additions & 6 deletions public/pages/workflow_detail/workspace/workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ export function Workspace(props: WorkspaceProps) {
[setEdges]
);

const onDragOver = useCallback((event) => {
event.preventDefault();
event.dataTransfer.dropEffect = 'move';
}, []);

// Initialization. Set the nodes and edges to an existing workflow state,
useEffect(() => {
const workflow = { ...props.workflow };
Expand Down Expand Up @@ -124,7 +119,6 @@ export function Workspace(props: WorkspaceProps) {
onNodesChange={onNodesChange}
onEdgesChange={onEdgesChange}
onConnect={onConnect}
onDragOver={onDragOver}
className="reactflow-workspace"
fitView
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React from 'react';
import { EuiTitle } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui';

interface GroupComponentProps {
data: { label: string };
Expand All @@ -16,10 +16,13 @@ interface GroupComponentProps {
*/
export function GroupComponent(props: GroupComponentProps) {
return (
<>
<EuiTitle size="l">
<h2 style={{ marginLeft: '8px' }}>{props.data.label}</h2>
</EuiTitle>
</>
<EuiFlexGroup direction="column">
<EuiFlexItem style={{ backgroundColor: 'black' }}>
<EuiTitle size="l">
<h2 style={{ marginLeft: '8px' }}>{props.data.label}</h2>
</EuiTitle>
</EuiFlexItem>
<EuiFlexItem></EuiFlexItem>
</EuiFlexGroup>
);
}

0 comments on commit b387b60

Please sign in to comment.