...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...
Path:
intl-whitelabel-app/workspaces/frontend/src/hooks/use-error-modal.tsx
Create a new type:
Code Block language typescript export type RecordRBIErrorType = ({ rbiErrors }: { rbiErrors: RbiError2IRbiError[] }) => void;
Change the type UseErrorDialogHook to create a new attribute
RecordRBIErrorType
:Code Block language typescript export type UseErrorDialogHook<P = any> = [ React.FC<Props<P>>, ModalCb, VoidFunction, recordRBIErrorType, ];
Change the interface
IUseErrorModalArgs
tooptional
:Code Block language typescript interface IUseErrorModalArgs<T> { ... modalAppearanceEventMessage?: string; }
Change the interface
IErrorModal
tooptional
and create a new attributerbiError
:Code Block language typescript export interface IErrorModal { ... message?: string | ReactNode; ... rbiError?: RbiError2IRbiError[]; }
recordRBIErrorEvents
...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
...