Add cron status to admin help section

[MAILPOET-1457]
This commit is contained in:
Rostislav Wolny
2018-07-19 16:50:22 +02:00
parent 3184b43b3b
commit 5f6fe1a7e5
5 changed files with 120 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
import React from 'react';
import MailPoet from 'mailpoet';
const PrintBoolean = props => (
<span>
{(props.children === true && props.truthy) ||
(props.children === false && props.falsy) ||
(props.unknown)}
</span>
);
PrintBoolean.propTypes = {
truthy: React.PropTypes.string,
falsy: React.PropTypes.string,
unknown: React.PropTypes.string,
children: React.PropTypes.bool,
};
PrintBoolean.defaultProps = {
truthy: MailPoet.I18n.t('yes'),
falsy: MailPoet.I18n.t('no'),
unknown: MailPoet.I18n.t('unknown'),
children: null,
};
module.exports = PrintBoolean;