Skip to content

Commit

Permalink
remove props from readonly node
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Jun 19, 2024
1 parent 6c1f179 commit 4a923f6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/client/flow/core/src/lib/node/readonly-node.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use client"
'use client'

import React from 'react'
import { BaseNode } from './base-node'
Expand All @@ -16,27 +16,18 @@ type ReadOnlyNodeProps = Omit<
export const ReadOnlyNode: React.FC<ReadOnlyNodeProps> = props => {
const { id, spec, spellId, ...rest } = props

const activeInput = null
const spellEvent = null

const onResetNodeState = () => {
// Dummy onResetNodeState logic
}

const setActiveInputWrapper = (
input: { nodeId: string; name: string } | null
) => {
// Dummy setActiveInput logic
}

return (
<BaseNode
id={id}
spec={spec}
spellId={spellId}
{...rest}
activeInput={activeInput}
setActiveInput={setActiveInputWrapper}
onResetNodeState={onResetNodeState}
spellEvent={spellEvent}
/>
Expand Down

0 comments on commit 4a923f6

Please sign in to comment.