From b95d687904dfb212f6ad7a3580272950664b9921 Mon Sep 17 00:00:00 2001 From: johannes-hernehult Date: Mon, 15 Jun 2026 11:18:34 +0200 Subject: [PATCH] feat: connect title and description inputs to state - Add updateTitle prop to Frame component - Add handleUpdateFrameTitle to useNewGuide hook - Wire onChange handlers for guide title, description, and frame title inputs --- src/features/guides/components/Frame.tsx | 14 +++++++++----- src/features/guides/hooks/useNewGuide.ts | 7 +++++++ src/features/guides/routes/NewGuide.tsx | 15 ++++++++++++--- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/features/guides/components/Frame.tsx b/src/features/guides/components/Frame.tsx index c93c1e4..1c6a7c6 100644 --- a/src/features/guides/components/Frame.tsx +++ b/src/features/guides/components/Frame.tsx @@ -7,23 +7,27 @@ export default function Frame({ addStep, removeStep, updateStep, + updateTitle, }: { frame: FrameType; onRemove: (frameId: string) => void; addStep: (frameId: string) => void; removeStep: (stepId: string) => void; updateStep: (stepId: string, text: string) => void; + updateTitle: (frameId: string, title: string) => void; }) { return (
- - updateStep(frame.id, e.target.value)} - /> + {frame.title}