update user files info
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user