Rename component
[MAILPOET-2832]
This commit is contained in:
@@ -7,7 +7,7 @@ type Props = {
|
||||
hasValidApiKey: boolean,
|
||||
};
|
||||
|
||||
const SubscribersLimit = ({ subscribersInPlan, hasValidApiKey }: Props) => {
|
||||
const SubscribersInPlan = ({ subscribersInPlan, hasValidApiKey }: Props) => {
|
||||
if (!subscribersInPlan) return null;
|
||||
if (!hasValidApiKey) return null;
|
||||
return (
|
||||
@@ -23,4 +23,4 @@ const SubscribersLimit = ({ subscribersInPlan, hasValidApiKey }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default SubscribersLimit;
|
||||
export default SubscribersInPlan;
|
@@ -5,7 +5,7 @@ import Listing from 'listing/listing.jsx';
|
||||
import PropTypes from 'prop-types';
|
||||
import Tabs from './tabs';
|
||||
|
||||
import SubscribersLimit from '../common/subscribers_limit';
|
||||
import SubscribersInPlan from '../common/subscribers_in_plan';
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -126,7 +126,7 @@ function DynamicSegmentList(props) {
|
||||
<Link className="page-title-action" to="/new-segment" data-automation-id="new-segment">{MailPoet.I18n.t('newSegment')}</Link>
|
||||
</h1>
|
||||
|
||||
<SubscribersLimit
|
||||
<SubscribersInPlan
|
||||
subscribersInPlan={window.mailpoet_subscribers_in_plan_count}
|
||||
hasValidApiKey={window.mailpoet_has_valid_api_key}
|
||||
/>
|
||||
|
@@ -8,7 +8,7 @@ import Listing from 'listing/listing.jsx';
|
||||
import SubscribersLimitNotice from 'notices/subscribers_limit_notice.jsx';
|
||||
import InvalidMssKeyNotice from '../notices/invalid_mss_key_notice';
|
||||
import Tabs from './tabs';
|
||||
import SubscribersLimit from '../common/subscribers_limit';
|
||||
import SubscribersInPlan from '../common/subscribers_in_plan';
|
||||
|
||||
const isWPUsersSegment = (segment) => segment.type === 'wp_users';
|
||||
const isWooCommerceCustomersSegment = (segment) => segment.type === 'woocommerce_users';
|
||||
@@ -303,7 +303,7 @@ class SegmentList extends React.Component {
|
||||
<Link className="page-title-action" to="/new-segment" data-automation-id="new-segment">{MailPoet.I18n.t('newSegment')}</Link>
|
||||
</h1>
|
||||
|
||||
<SubscribersLimit
|
||||
<SubscribersInPlan
|
||||
subscribersInPlan={window.mailpoet_subscribers_in_plan_count}
|
||||
hasValidApiKey={window.mailpoet_has_valid_api_key}
|
||||
/>
|
||||
|
@@ -10,7 +10,7 @@ import Listing from 'listing/listing.jsx';
|
||||
import Selection from 'form/fields/selection.jsx';
|
||||
import SubscribersLimitNotice from 'notices/subscribers_limit_notice.jsx';
|
||||
import InvalidMssKeyNotice from 'notices/invalid_mss_key_notice';
|
||||
import SubscribersLimit from '../common/subscribers_limit';
|
||||
import SubscribersInPlan from '../common/subscribers_in_plan';
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -377,7 +377,7 @@ class SubscriberList extends React.Component {
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<SubscribersLimit
|
||||
<SubscribersInPlan
|
||||
subscribersInPlan={window.mailpoet_subscribers_in_plan_count}
|
||||
hasValidApiKey={window.mailpoet_has_valid_api_key}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user