changes some status
This commit is contained in:
1 parent
cbd17608c1
commit
6e626482f6
15 files changed
+553
-99
No files matched your search
@@ -4,6 +4,7 @@ import type { TFunction } from "i18next";
|
||||
import { Info } from "lucide-react";
|
||||
import { Cell, Pie, PieChart } from "recharts";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { getEducationLabel, getMarriageLabel } from "@/constants/formOptions";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
import { ChartContainer, ChartTooltip, ChartTooltipContent } from "@/components/ui/chart";
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
@@ -299,11 +300,10 @@ export function CustomersSection({ data, isLoading, isError, onRetry }: QueryPro
|
||||
}
|
||||
|
||||
const unknown = t("analytics.unknown", "Näbelli");
|
||||
const humanize = (k: string) => k.charAt(0).toUpperCase() + k.slice(1).toLowerCase().replace(/_/g, " ");
|
||||
const ageLabel = (k: string) =>
|
||||
k === "under25" ? t("analytics.age.under25", "25 ýaşdan kiçi") : k === "unknown" ? unknown : `${k} ${t("analytics.age.years", "ýaş")}`;
|
||||
const educationLabel = (k: string) => (k === "unknown" ? unknown : t(`options.education.${k}`, humanize(k)));
|
||||
const marriageLabel = (k: string) => (k === "unknown" ? unknown : t(`options.marriage.${k}`, humanize(k)));
|
||||
const educationLabel = (k: string) => (k === "unknown" ? unknown : getEducationLabel(k, t));
|
||||
const marriageLabel = (k: string) => (k === "unknown" ? unknown : getMarriageLabel(k, t));
|
||||
const guarantorLabel = (k: string) =>
|
||||
({
|
||||
none: t("analytics.guarantors.none", "Zamunsyz"),
|
||||
|
||||
Reference in new issue
Block a user