update user files info

This commit is contained in:
smanylov
2026-01-07 13:03:50 +07:00
parent 5597fe42a2
commit aa0f9398eb
16 changed files with 371 additions and 76 deletions
+4 -3
View File
@@ -3,12 +3,13 @@
import { useTranslations } from 'next-intl';
import { PieChart, Pie, Cell, ResponsiveContainer } from 'recharts';
export const PieChartComponent = ({ data }: {
export const PieChartComponent = ({ data, show }: {
data: {
name: string,
value: number,
color: string
}[]
}[],
show: number | string
}) => {
const t = useTranslations('Global');
@@ -19,7 +20,7 @@ export const PieChartComponent = ({ data }: {
<ResponsiveContainer width={200} height={200}>
<PieChart>
<text x={100} y={75} className="pie-char-text">
0
{show}
</text>
<text x={100} y={100} className="pie-char-text">
{t('out-of')}