Fix display of upgrade banner on subscribers stats page

[MAILPOET-5968]
This commit is contained in:
Brezo Cordero
2024-05-03 15:44:30 -05:00
committed by Aschepikov
parent 693fbfafb1
commit 9e68df80fd

View File

@ -42,46 +42,48 @@ export function NoAccessInfo(): JSX.Element {
); );
return ( return (
<table <div className="mailpoet-listing">
className="mailpoet-listing-table" <table
data-automation-id="subscriber-stats-no-access" className="mailpoet-listing-table"
> data-automation-id="subscriber-stats-no-access"
<thead> >
<tr> <thead>
<th>{__('E-mail', 'mailpoet')}</th> <tr>
<th> <th>{__('E-mail', 'mailpoet')}</th>
{ <th>
// translators: Table column label for subscriber actions e.g. email open, link clicked {
__('Action', 'mailpoet') // translators: Table column label for subscriber actions e.g. email open, link clicked
} __('Action', 'mailpoet')
</th> }
<th> </th>
{ <th>
// translators: Table column label for count of subscriber actions {
__('Count', 'mailpoet') // translators: Table column label for count of subscriber actions
} __('Count', 'mailpoet')
</th> }
<th> </th>
{ <th>
// translators: Table column label for date when subscriber action happened {
__('Action on', 'mailpoet') // translators: Table column label for date when subscriber action happened
} __('Action on', 'mailpoet')
</th> }
</tr> </th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<td colSpan={4}> <tr>
<div className="mailpoet-subscriber-stats-no-access-content"> <td colSpan={4}>
<PremiumBannerWithUpgrade <div className="mailpoet-subscriber-stats-no-access-content">
message={getBannerMessage({})} <PremiumBannerWithUpgrade
actionButton={getCtaButton({})} message={getBannerMessage({})}
capabilities={{ detailedAnalytics: true }} actionButton={getCtaButton({})}
/> capabilities={{ detailedAnalytics: true }}
</div> />
</td> </div>
</tr> </td>
</tbody> </tr>
</table> </tbody>
</table>
</div>
); );
} }