Remove redundant type

[MAILPOET-2791]
This commit is contained in:
Pavel Dohnal
2020-10-20 14:42:51 +02:00
committed by Veljko V
parent 8017204d8a
commit a8e61d83d2

View File

@@ -3,11 +3,6 @@ import MailPoet from 'mailpoet';
import ReactStringReplace from 'react-string-replace'; import ReactStringReplace from 'react-string-replace';
import jQuery from 'jquery'; import jQuery from 'jquery';
type featureAnnouncementProps = {
hasNews: boolean,
onBeamerClick: () => {},
}
export const withFeatureAnnouncement = <P extends object>( export const withFeatureAnnouncement = <P extends object>(
Component: React.ComponentType<P> Component: React.ComponentType<P>
): React.FC<Omit<P, 'hasNews'|'onBeamerClick'>> => { ): React.FC<Omit<P, 'hasNews'|'onBeamerClick'>> => {