fix: Fix the problem that the custom footer of modal component (#8877)

### What problem does this PR solve?

Fix the problem that the custom footer of modal component is not
effective, specify the react and react-dom versions, and add the
input-number component
[#3221](https://github.com/infiniflow/ragflow/issues/3221)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-07-17 12:10:58 +08:00
committed by GitHub
parent fa1d6ed683
commit a422367a40
3 changed files with 99 additions and 5 deletions

View File

@ -106,12 +106,12 @@ export const Modal: FC<ModalProps> = ({
</button>
</div>
);
return (
<div className="flex items-center justify-end border-t border-border px-6 py-4">
{footerTemp}
</div>
);
}
return (
<div className="flex items-center justify-end border-t border-border px-6 py-4">
{footerTemp}
</div>
);
}, [footer, cancelText, t, confirmLoading, okText, handleCancel, handleOk]);
return (
<DialogPrimitive.Root open={open} onOpenChange={handleChange}>