After upgrading from 2.8.0 to 3.0.1, I got this typescript error in my customUI ...
Argument of type '{ customUI: ({ onClose }: { title: string; message: string; onClose: () => void; }) => Element; }' is not assignable to parameter of type 'ReactConfirmAlertProps'.
Type '{ customUI: ({ onClose }: { title: string; message: string; onClose: () => void; }) => Element; }' is missing the following properties from type 'ReactConfirmAlertProps': targetId, keyCodeForClose
I added both properties (targetId, keyCodeForClose) after the customUI property and the error went away. However, the issue is that I don't know what I am supposed to write as a value for "targetId", and I couldn't find it in the documentation either.
After upgrading from 2.8.0 to 3.0.1, I got this typescript error in my customUI ...
I added both properties
(targetId, keyCodeForClose)
after the customUI property and the error went away. However, the issue is that I don't know what I am supposed to write as a value for "targetId", and I couldn't find it in the documentation either.Here's my component so far ...