mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-07 01:02:21 -06:00
change value to count
This commit is contained in:
@@ -30,7 +30,7 @@ export const CalSummary = ({ elementSummary, survey }: CalSummaryProps) => {
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: elementSummary.booked.count })}
|
||||
{t("common.count_responses", { count: elementSummary.booked.count })}
|
||||
</p>
|
||||
</div>
|
||||
<ProgressBar barColor="bg-brand-dark" progress={elementSummary.booked.percentage / 100} />
|
||||
@@ -46,7 +46,7 @@ export const CalSummary = ({ elementSummary, survey }: CalSummaryProps) => {
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: elementSummary.skipped.count })}
|
||||
{t("common.count_responses", { count: elementSummary.skipped.count })}
|
||||
</p>
|
||||
</div>
|
||||
<ProgressBar barColor="bg-brand-dark" progress={elementSummary.skipped.percentage / 100} />
|
||||
|
||||
@@ -64,7 +64,7 @@ export const ConsentSummary = ({ elementSummary, survey, setFilter }: ConsentSum
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: summaryItem.count })}
|
||||
{t("common.count_responses", { count: summaryItem.count })}
|
||||
</p>
|
||||
</div>
|
||||
<div className="group-hover:opacity-80">
|
||||
|
||||
@@ -48,7 +48,7 @@ export const ElementSummaryHeader = ({
|
||||
{showResponses && (
|
||||
<div className="flex items-center rounded-lg bg-slate-100 p-2">
|
||||
<InboxIcon className="mr-2 h-4 w-4" />
|
||||
{t("common.count_responses", { value: elementSummary.responseCount })}
|
||||
{t("common.count_responses", { count: elementSummary.responseCount })}
|
||||
</div>
|
||||
)}
|
||||
{additionalInfo}
|
||||
|
||||
@@ -41,7 +41,7 @@ export const HiddenFieldsSummary = ({ environment, elementSummary, locale }: Hid
|
||||
</div>
|
||||
<div className="flex items-center rounded-lg bg-slate-100 p-2">
|
||||
<InboxIcon className="mr-2 h-4 w-4" />
|
||||
{t("common.count_responses", { value: elementSummary.responseCount })}
|
||||
{t("common.count_responses", { count: elementSummary.responseCount })}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -31,7 +31,7 @@ export const MatrixElementSummary = ({ elementSummary, survey, setFilter }: Matr
|
||||
if (label) {
|
||||
return label;
|
||||
} else if (percentage !== undefined && totalResponsesForRow !== undefined) {
|
||||
return t("common.count_responses", { value: Math.round((percentage / 100) * totalResponsesForRow) });
|
||||
return t("common.count_responses", { count: Math.round((percentage / 100) * totalResponsesForRow) });
|
||||
}
|
||||
return "";
|
||||
};
|
||||
|
||||
@@ -123,7 +123,7 @@ export const NPSSummary = ({ elementSummary, survey, setFilter }: NPSSummaryProp
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: elementSummary[group]?.count })}
|
||||
{t("common.count_responses", { count: elementSummary[group]?.count })}
|
||||
</p>
|
||||
</div>
|
||||
<ProgressBar
|
||||
|
||||
@@ -198,7 +198,7 @@ export const RatingSummary = ({ elementSummary, survey, setFilter }: RatingSumma
|
||||
</div>
|
||||
</div>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: result.count })}
|
||||
{t("common.count_responses", { count: result.count })}
|
||||
</p>
|
||||
</div>
|
||||
<ProgressBar barColor="bg-brand-dark" progress={result.percentage / 100} />
|
||||
@@ -215,7 +215,7 @@ export const RatingSummary = ({ elementSummary, survey, setFilter }: RatingSumma
|
||||
<div className="text flex justify-between px-2">
|
||||
<p className="font-semibold text-slate-700">{t("common.dismissed")}</p>
|
||||
<p className="flex w-32 items-end justify-end text-slate-600">
|
||||
{t("common.count_responses", { value: elementSummary.dismissed.count })}
|
||||
{t("common.count_responses", { count: elementSummary.dismissed.count })}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@ export const AccessTable = ({ teams }: AccessTableProps) => {
|
||||
<TableRow key={team.id} className="border-slate-200 hover:bg-transparent">
|
||||
<TableCell className="font-medium">{team.name}</TableCell>
|
||||
<TableCell>
|
||||
{t("common.count_members", { value: team.memberCount })}
|
||||
{t("common.count_members", { count: team.memberCount })}
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<IdBadge id={team.id} />
|
||||
|
||||
@@ -98,7 +98,7 @@ export const TeamsTable = ({
|
||||
<TableRow key={team.id} id={team.name} className="hover:bg-transparent">
|
||||
<TableCell>{team.name}</TableCell>
|
||||
<TableCell>
|
||||
{t("common.count_members", { value: team.memberCount })}
|
||||
{t("common.count_members", { count: team.memberCount })}
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Badge
|
||||
@@ -121,7 +121,7 @@ export const TeamsTable = ({
|
||||
<TableRow key={team.id} id={team.name} className="hover:bg-transparent">
|
||||
<TableCell>{team.name}</TableCell>
|
||||
<TableCell>
|
||||
{t("common.count_members", { value: team.memberCount })}
|
||||
{t("common.count_members", { count: team.memberCount })}
|
||||
</TableCell>
|
||||
<TableCell></TableCell>
|
||||
<TableCell className="flex justify-end">
|
||||
|
||||
@@ -132,11 +132,11 @@ export const SelectedRowSettings = <T,>({
|
||||
|
||||
let deleteWhatText: string;
|
||||
if (type === "response") {
|
||||
deleteWhatText = t("common.count_responses", { value: selectedRowCount });
|
||||
deleteWhatText = t("common.count_responses", { count: selectedRowCount });
|
||||
} else if (type === "contact") {
|
||||
deleteWhatText = t("common.count_contacts", { value: selectedRowCount });
|
||||
deleteWhatText = t("common.count_contacts", { count: selectedRowCount });
|
||||
} else {
|
||||
deleteWhatText = t("common.count_attributes", { value: selectedRowCount });
|
||||
deleteWhatText = t("common.count_attributes", { count: selectedRowCount });
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user