Use new <Badge /> element in email statistic panel

[MAILPOET-5091]
This commit is contained in:
David Remer
2023-07-03 13:56:25 +03:00
committed by Aschepikov
parent 0490a2b9a8
commit b566959c4a

View File

@@ -7,6 +7,7 @@ import { EmailStats, OverviewSection, storeName } from '../../../../../store';
import { locale } from '../../../../../config';
import { formattedPrice } from '../../../../../formatter';
import { openTab } from '../../../../../navigation/open_tab';
import { Badge } from '../../../../email_click_badge';
type SendEmailPanelSectionProps = {
label: string;
@@ -85,9 +86,7 @@ export function SendEmailPanel({ step }: SendEmailPanelProps): JSX.Element {
/>
<SendEmailPanelSection
label={__('Clicked', 'mailpoet')}
value={Intl.NumberFormat(locale.toString(), {
notation: 'compact',
}).format(email?.clicked ?? 0)}
value={<Badge email={email} property="clicked" />}
isLoading={isLoading}
/>
<hr />