Skip to content

Commit 72eb58e

Browse files
committed
address review comment (on example app)
1 parent f0e46f5 commit 72eb58e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/agentflow/examples/src/FlowStatePanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ import { useCallback, useEffect, useRef, useState } from 'react'
99

1010
import type { FlowData } from '@flowiseai/agentflow'
1111

12+
type FlowStatePanelTab = 'live' | 'saved'
13+
1214
interface FlowStatePanelProps {
1315
currentFlow: FlowData | null
1416
savedFlow: FlowData | null
1517
changeCount: number
1618
}
1719

1820
export function FlowStatePanel({ currentFlow, savedFlow, changeCount }: FlowStatePanelProps) {
19-
const [tab, setTab] = useState<'live' | 'saved'>('live')
21+
const [tab, setTab] = useState<FlowStatePanelTab>('live')
2022
const [copied, setCopied] = useState(false)
2123
const [width, setWidth] = useState(300)
2224
const dragging = useRef(false)

0 commit comments

Comments
 (0)