Not able to access empty state props in the SuccessScreenBase component.
Click on...
Screenshots / Screen recording
Code snippet / Link to minimum reproduction example
CODE HERE
Your environment information
Suggested fix
We can add a new prop emptyStateProps and remove the icon, message and MessageTitle
export type SuccessScreenProps = WorkflowCardProps & {
/**
* Update main content
*/
emptyStateProps: EmptyStateProps;
/**
* The title of the success message
*/
messageTitle?: ReactNode;
/**
* The success message to be displayed on the screen
*/
message?: ReactNode;
/**
* To display label for the button
*/
dismissButtonLabel?: string;
/**
* The function to call when the dismiss button is clicked
*/
canDismiss?: boolean | (() => boolean);
/**
* The function to call when user clicks button
* @returns {void}
*/
onDismiss?: () => void;
/**
* The configuration for customizing how errors are displayed
*/
errorDisplayConfig?: ErrorManagerProps;
};
Describe the bug / expected behavior
What are the steps to reproduce?
Screenshots / Screen recording
Code snippet / Link to minimum reproduction example
Your environment information
Suggested fix
We can add a new prop emptyStateProps and remove the icon, message and MessageTitle
Anything else to add?