Show total scans in social milestones
This commit is contained in:
@@ -45,6 +45,7 @@ export type SocialMilestoneCard = {
|
||||
qrTitle: string;
|
||||
label: string;
|
||||
title: string;
|
||||
totalScans: number;
|
||||
totalUniqueScans: number;
|
||||
milestoneThreshold: number;
|
||||
reachedAt: string;
|
||||
@@ -93,6 +94,7 @@ export function buildMilestonePostForQr(primaryUseCase: string | null, totalUniq
|
||||
export function buildMilestoneCardSnapshot(input: {
|
||||
primaryUseCase: string | null;
|
||||
qrTitle: string;
|
||||
totalScans: number;
|
||||
totalUniqueScans: number;
|
||||
milestoneThreshold: number;
|
||||
reachedAt: Date;
|
||||
@@ -105,6 +107,7 @@ export function buildMilestoneCardSnapshot(input: {
|
||||
qrTitle: input.qrTitle,
|
||||
label: usageLabel(input.primaryUseCase, input.locale),
|
||||
title: input.locale === 'de' ? 'Erfolgsmeilenstein' : 'Success milestone',
|
||||
totalScans: input.totalScans,
|
||||
totalUniqueScans: input.totalUniqueScans,
|
||||
milestoneThreshold: input.milestoneThreshold,
|
||||
reachedAt: input.reachedAt.toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user