mirror of https://github.com/kortix-ai/suna.git
hotfix(frontend): typeerrors
This commit is contained in:
parent
ddebe23beb
commit
4188fae912
|
@ -41,6 +41,7 @@ export function ChatSettingsDialog({
|
|||
onOpenChange: controlledOnOpenChange,
|
||||
}: ChatSettingsDialogProps) {
|
||||
const [internalOpen, setInternalOpen] = useState(false);
|
||||
const [billingModalOpen, setBillingModalOpen] = useState(false);
|
||||
|
||||
const open = controlledOpen !== undefined ? controlledOpen : internalOpen;
|
||||
const setOpen = controlledOnOpenChange || setInternalOpen;
|
||||
|
@ -86,6 +87,8 @@ export function ChatSettingsDialog({
|
|||
canAccessModel={canAccessModel}
|
||||
refreshCustomModels={refreshCustomModels}
|
||||
hasBorder={true}
|
||||
billingModalOpen={billingModalOpen}
|
||||
setBillingModalOpen={setBillingModalOpen}
|
||||
/>
|
||||
</div>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
|
|
|
@ -37,6 +37,7 @@ const InputNode = memo(({ data, selected, id }: NodeProps) => {
|
|||
const [isScheduleDialogOpen, setIsScheduleDialogOpen] = useState(false);
|
||||
const [localPrompt, setLocalPrompt] = useState(nodeData.prompt || '');
|
||||
const { updateNodeData, workflowId } = useWorkflow();
|
||||
const [billingModalOpen, setBillingModalOpen] = useState(false);
|
||||
|
||||
// Use the model selection hook
|
||||
const {
|
||||
|
@ -226,6 +227,8 @@ const InputNode = memo(({ data, selected, id }: NodeProps) => {
|
|||
canAccessModel={canAccessModel}
|
||||
subscriptionStatus={subscriptionStatus}
|
||||
refreshCustomModels={refreshCustomModels}
|
||||
billingModalOpen={billingModalOpen}
|
||||
setBillingModalOpen={setBillingModalOpen}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue