mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
@types/react went from 18 to 19 with React. Three of its changes reached this code, none of them at run time: - useRef(null) is a RefObject<T | null>, so the PDF viewer's constraint ref and the signature pad's validity check take one. The virtual list the first is handed to already did, and the check already returns false when current is null. - useRef takes its initial value; the autosave timer and the signing card's timeout pass undefined, which is what useRef() gave them. - The global JSX namespace is gone; the role icons import JSX from react. Co-authored-by: Hanzo Dev <[email protected]>