user nouveau onglet
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { GraduationCap, Users, ChevronRight } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
|
||||
@@ -37,7 +35,7 @@ export default function ReferentsPage() {
|
||||
// Grouper par référent
|
||||
const referentsMap = new Map<string, ReferentData>();
|
||||
|
||||
result.data.forEach((user: any) => {
|
||||
result.data.forEach((user: { referent?: string; cours?: string }) => {
|
||||
if (user.referent) {
|
||||
if (!referentsMap.has(user.referent)) {
|
||||
referentsMap.set(user.referent, {
|
||||
|
||||
Reference in New Issue
Block a user