fix: resolve TypeScript build errors in StatusUpdateModal and FlowPilotSessionPage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ const LENGTHS: { value: StatusUpdateLength; icon: typeof Zap; label: string; des
|
|||||||
|
|
||||||
type ModalStep = 'audience' | 'length' | 'generating' | 'result'
|
type ModalStep = 'audience' | 'length' | 'generating' | 'result'
|
||||||
|
|
||||||
export function StatusUpdateModal({ open, onClose, onGenerate, context = 'status', hasPsaTicket = false }: StatusUpdateModalProps) {
|
export function StatusUpdateModal({ open, onClose, onGenerate, context = 'status' }: StatusUpdateModalProps) {
|
||||||
const [step, setStep] = useState<ModalStep>('audience')
|
const [step, setStep] = useState<ModalStep>('audience')
|
||||||
const [audience, setAudience] = useState<StatusUpdateAudience | null>(null)
|
const [audience, setAudience] = useState<StatusUpdateAudience | null>(null)
|
||||||
const [length, setLength] = useState<StatusUpdateLength | null>(null)
|
const [length, setLength] = useState<StatusUpdateLength | null>(null)
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export default function FlowPilotSessionPage() {
|
|||||||
}}
|
}}
|
||||||
onRate={fp.rateSession}
|
onRate={fp.rateSession}
|
||||||
onReloadSession={() => fp.loadSession(fp.session!.id)}
|
onReloadSession={() => fp.loadSession(fp.session!.id)}
|
||||||
onGenerateStatusUpdate={fp.generateStatusUpdate}
|
onGenerateStatusUpdate={(audience, length, context) => fp.generateStatusUpdate({ audience, length, context })}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user