refactor: clean up imports and improve code consistency across various components; remove unused imports in page.tsx, add missing imports in categories page, and standardize formatting in hooks and chart components
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m30s

This commit is contained in:
Julien Froidefond
2025-12-22 08:46:59 +01:00
parent 7c3f522531
commit b2eac21bdf
6 changed files with 29 additions and 20 deletions

View File

@@ -31,7 +31,15 @@ export function CategoryBarChart({
const displayData = data.slice(0, maxItems).reverse(); // Reverse pour avoir le plus grand en haut
// Custom tick component for clickable labels
const CustomYAxisTick = ({ x, y, payload }: any) => {
const CustomYAxisTick = ({
x,
y,
payload,
}: {
x: number;
y: number;
payload: { value: string };
}) => {
const categoryName = payload.value;
const item = displayData.find((d) => d.name === categoryName);