Use total count of subscribers
[MAILPOET-2832]
This commit is contained in:
@@ -3,17 +3,17 @@ import MailPoet from 'mailpoet';
|
||||
import HelpTooltip from 'help-tooltip.jsx';
|
||||
|
||||
type Props = {
|
||||
subscribersLimit: number | false,
|
||||
subscribersInPlan: number | false,
|
||||
hasValidApiKey: boolean,
|
||||
};
|
||||
|
||||
const SubscribersLimit = ({ subscribersLimit, hasValidApiKey }: Props) => {
|
||||
if (!subscribersLimit) return null;
|
||||
const SubscribersLimit = ({ subscribersInPlan, hasValidApiKey }: Props) => {
|
||||
if (!subscribersInPlan) return null;
|
||||
if (!hasValidApiKey) return null;
|
||||
return (
|
||||
<h3>
|
||||
{MailPoet.I18n.t('subscribersInPlan')
|
||||
.replace('%$1d', subscribersLimit.toLocaleString())}
|
||||
.replace('%$1d', subscribersInPlan.toLocaleString())}
|
||||
{' '}
|
||||
<HelpTooltip
|
||||
tooltip={MailPoet.I18n.t('subscribersInPlanTooltip')}
|
||||
|
Reference in New Issue
Block a user