Add missing default props
[MAILPOET-2681]
This commit is contained in:
committed by
Veljko V
parent
fd3a1738d2
commit
6945d81a64
@@ -15,6 +15,9 @@ const NotValidMessage = ({ message }: NotValidMessageProps) => (
|
||||
{message || MailPoet.I18n.t('premiumTabMssKeyNotValidMessage')}
|
||||
</div>
|
||||
);
|
||||
NotValidMessage.defaultProps = {
|
||||
message: '',
|
||||
};
|
||||
|
||||
type MssNotActiveMessageProps = { activationCallback: () => any }
|
||||
const MssNotActiveMessage = ({ activationCallback }: MssNotActiveMessageProps) => (
|
||||
@@ -45,3 +48,6 @@ export default function MssMessages(props: Props) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
MssMessages.defaultProps = {
|
||||
keyMessage: '',
|
||||
};
|
||||
|
@@ -50,6 +50,9 @@ const NotValidMessage = ({ message }: NotValidMessageProps) => (
|
||||
{message || MailPoet.I18n.t('premiumTabPremiumKeyNotValidMessage')}
|
||||
</div>
|
||||
);
|
||||
NotValidMessage.defaultProps = {
|
||||
keyMessage: '',
|
||||
};
|
||||
|
||||
type Props = {
|
||||
keyMessage?: string
|
||||
@@ -75,3 +78,7 @@ export default function PremiumMessages(props: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
PremiumMessages.defaultProps = {
|
||||
keyMessage: '',
|
||||
};
|
||||
|
Reference in New Issue
Block a user