Skip to content

Commit

Permalink
Fix TS issues with props in automation TemplateDetail component
Browse files Browse the repository at this point in the history
[MAILPOET-5714]
  • Loading branch information
costasovo committed Dec 14, 2023
1 parent 6b09318 commit 9b43122
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,7 +18,7 @@ import { MailPoet } from '../../../mailpoet';

// snackbar icon is not annotated in the types
const Snackbar = WpSnackbar as ComponentType<
WpSnackbar.Props & {
React.ComponentProps<typeof WpSnackbar> & {
icon: ReactNode;
isDismissible?: boolean;
explicitDismiss?: boolean;
Expand Down Expand Up @@ -63,7 +63,7 @@ const useCreateFromTemplate = () => {

type Props = {
template: AutomationTemplate;
onRequestClose: Modal.Props['onRequestClose'];
onRequestClose: React.ComponentProps<typeof Modal>['onRequestClose'];
onPreviousClick?: MouseEventHandler<HTMLButtonElement>;
onNextClick?: MouseEventHandler<HTMLButtonElement>;
};
Expand Down

0 comments on commit 9b43122

Please sign in to comment.