fixed table, changed color
This commit is contained in:
1 parent
edf503e329
commit
2effb45d01
38 files changed
+1488
-1553
No files matched your search
@@ -411,7 +411,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
value={stats?.loanOrders?.count?.toLocaleString() ?? "0"}
|
||||
change={stats?.loanOrders?.changePercent}
|
||||
icon={FileText}
|
||||
accent="bg-blue-100 text-blue-600 dark:bg-blue-950 dark:text-blue-400"
|
||||
accent="bg-[var(--chart-1)]/12 text-[var(--chart-1)]"
|
||||
comparedToText={t("dashboard.comparedToLastMonth", "geçen aýa garanyňda")}
|
||||
totalActiveText={t("dashboard.totalLoanOrders", "Jemi karz sargytlar")}
|
||||
/>
|
||||
@@ -420,7 +420,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
value={stats?.activeCards?.count?.toLocaleString() ?? "0"}
|
||||
change={stats?.activeCards?.changePercent}
|
||||
icon={CreditCard}
|
||||
accent="bg-violet-100 text-violet-600 dark:bg-violet-950 dark:text-violet-400"
|
||||
accent="bg-[var(--chart-3)]/12 text-[var(--chart-3)]"
|
||||
comparedToText={t("dashboard.comparedToLastMonth", "geçen aýa garanyňda")}
|
||||
totalActiveText={t("dashboard.totalActiveCards", "Işjeň kartlaryň sany")}
|
||||
/>
|
||||
@@ -429,7 +429,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
value={stats?.activeCustomers?.count?.toLocaleString() ?? "0"}
|
||||
change={stats?.activeCustomers?.changePercent}
|
||||
icon={Users}
|
||||
accent="bg-amber-100 text-amber-600 dark:bg-amber-950 dark:text-amber-400"
|
||||
accent="bg-[var(--chart-4)]/12 text-[var(--chart-4)]"
|
||||
comparedToText={t("dashboard.comparedToLastMonth", "geçen aýa garanyňda")}
|
||||
totalActiveText={t("dashboard.totalActiveCustomers", "Hasaba alnan müşderiler")}
|
||||
/>
|
||||
@@ -438,7 +438,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
value={stats?.onlinePayments?.count?.toLocaleString() ?? "0"}
|
||||
change={stats?.onlinePayments?.changePercent}
|
||||
icon={DollarSign}
|
||||
accent="bg-emerald-100 text-emerald-600 dark:bg-emerald-950 dark:text-emerald-400"
|
||||
accent="bg-[var(--chart-2)]/12 text-[var(--chart-2)]"
|
||||
comparedToText={t("dashboard.comparedToLastMonth", "geçen aýa garanyňda")}
|
||||
totalActiveText={t("dashboard.totalOnlinePayments", "Amala aşyrylan tölegler")}
|
||||
/>
|
||||
@@ -459,12 +459,12 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
<AreaChart data={areaData} margin={{ top: 8, right: 12, left: -20, bottom: 0 }}>
|
||||
<defs>
|
||||
<linearGradient id="fillLoans" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="5%" stopColor="#2563eb" stopOpacity={0.3} />
|
||||
<stop offset="95%" stopColor="#2563eb" stopOpacity={0.02} />
|
||||
<stop offset="5%" stopColor="var(--chart-1)" stopOpacity={0.3} />
|
||||
<stop offset="95%" stopColor="var(--chart-1)" stopOpacity={0.02} />
|
||||
</linearGradient>
|
||||
<linearGradient id="fillCards" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="5%" stopColor="#10b981" stopOpacity={0.3} />
|
||||
<stop offset="95%" stopColor="#10b981" stopOpacity={0.02} />
|
||||
<stop offset="5%" stopColor="var(--chart-2)" stopOpacity={0.3} />
|
||||
<stop offset="95%" stopColor="var(--chart-2)" stopOpacity={0.02} />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<CartesianGrid strokeDasharray="3 3" vertical={false} stroke="var(--border)" />
|
||||
@@ -474,7 +474,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
<Area
|
||||
type="monotone"
|
||||
dataKey="loans"
|
||||
stroke="#2563eb"
|
||||
stroke="var(--chart-1)"
|
||||
strokeWidth={2.5}
|
||||
fill="url(#fillLoans)"
|
||||
dot={false}
|
||||
@@ -483,7 +483,7 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
<Area
|
||||
type="monotone"
|
||||
dataKey="cards"
|
||||
stroke="#10b981"
|
||||
stroke="var(--chart-2)"
|
||||
strokeWidth={2.5}
|
||||
fill="url(#fillCards)"
|
||||
dot={false}
|
||||
@@ -517,10 +517,10 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
cy="50%"
|
||||
innerRadius={48}
|
||||
outerRadius={72}
|
||||
paddingAngle={3}
|
||||
paddingAngle={0}
|
||||
strokeWidth={0}
|
||||
dataKey="value"
|
||||
nameKey="name"
|
||||
strokeWidth={0}
|
||||
>
|
||||
{pieData.map((entry, i) => (
|
||||
<Cell key={i} fill={entry.color} />
|
||||
@@ -568,8 +568,8 @@ export default function DashboardPage({ isLoading: propLoading = false }: { isLo
|
||||
<XAxis dataKey="day" tickLine={false} axisLine={false} tick={{ fontSize: 11, fill: "var(--muted-foreground)" }} />
|
||||
<YAxis tickLine={false} axisLine={false} tick={{ fontSize: 11, fill: "var(--muted-foreground)" }} allowDecimals={false} />
|
||||
<ChartTooltip content={<ChartTooltipContent />} />
|
||||
<Bar dataKey="loans" fill="#2563eb" radius={[4, 4, 0, 0]} maxBarSize={18} />
|
||||
<Bar dataKey="cards" fill="#10b981" radius={[4, 4, 0, 0]} maxBarSize={18} />
|
||||
<Bar dataKey="loans" fill="var(--chart-1)" radius={[4, 4, 0, 0]} maxBarSize={18} />
|
||||
<Bar dataKey="cards" fill="var(--chart-2)" radius={[4, 4, 0, 0]} maxBarSize={18} />
|
||||
<ChartLegend content={<ChartLegendContent />} />
|
||||
</BarChart>
|
||||
</ChartContainer>
|
||||
|
||||
Reference in new issue
Block a user