Compare commits

...

2 commits

Author SHA1 Message Date
Nathan Lamy
38833a7fce feat: refresh colle button
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m16s
2026-02-24 23:58:15 +01:00
Nathan Lamy
fadf68152d fix: rename API routes 2026-02-24 23:57:02 +01:00
2 changed files with 6 additions and 6 deletions

View file

@ -92,12 +92,12 @@ export const getStudentMatch = async (
classId: string classId: string
) => { ) => {
return makeRequest( return makeRequest(
`/api/match-student?firstName=${firstName}&lastName=${lastName}&classId=${classId}` `/users/match-student?firstName=${firstName}&lastName=${lastName}&classId=${classId}`
); );
}; };
export const mergeStudent = async (studentId: string) => { export const mergeStudent = async (studentId: string) => {
return makePostRequest("/api/merge-student", { pastStudentId: studentId }); return makePostRequest("/users/merge-student", { pastStudentId: studentId });
}; };
/** /**

View file

@ -196,7 +196,7 @@ export default function ColleDetailPage() {
</Button> </Button>
<div className="flex md:hidden items-center gap-2"> <div className="flex md:hidden items-center gap-2">
<div className="space-x-2"> <div className="space-x-2">
{/* <Button <Button
variant="outline" variant="outline"
size="icon" size="icon"
className="h-10 w-10" className="h-10 w-10"
@ -207,7 +207,7 @@ export default function ColleDetailPage() {
className={`h-5 w-5 ${isReloading ? "animate-spin" : ""}`} className={`h-5 w-5 ${isReloading ? "animate-spin" : ""}`}
/> />
<span className="sr-only">Recharger</span> <span className="sr-only">Recharger</span>
</Button> */} </Button>
{syllabusLink && ( {syllabusLink && (
<Button <Button
variant="outline" variant="outline"
@ -279,7 +279,7 @@ export default function ColleDetailPage() {
</Button> </Button>
)} )}
{/* <Button <Button
variant="outline" variant="outline"
size="sm" size="sm"
className="h-9 w-9" className="h-9 w-9"
@ -291,7 +291,7 @@ export default function ColleDetailPage() {
className={`h-4 w-4 ${isReloading ? "animate-spin" : ""}`} className={`h-4 w-4 ${isReloading ? "animate-spin" : ""}`}
/> />
<span className="sr-only">Recharger</span> <span className="sr-only">Recharger</span>
</Button> */} </Button>
{/* <Button {/* <Button
variant="ghost" variant="ghost"