Add JSX.Element to component in BasicToastrOptions (#22825)

We are getting error when trying to add component for Toastr.info, success, error and warning since "component" property is of type Component and not JSX.Element like the LightToastrOptions has. Hence it would be great if we can add it to the BasicToastrOptions as well.

Thanks
This commit is contained in:
Christian Sahlström
2018-01-17 20:47:56 +01:00
committed by Wesley Wigham
parent 6d895a2552
commit 3d5a2db8f6

View File

@@ -18,7 +18,7 @@ export type transitionOutType = 'bounceOut' | 'bounceOutUp' | 'fadeOut';
interface BasicToastrOptions {
attention?: boolean;
className?: string;
component?: Component;
component?: Component | JSX.Element;
icon?: JSX.Element;
onCloseButtonClick?: () => void;
onHideComplete?: () => void;