Update app/components/grades/grades-chart.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m56s
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m56s
This commit is contained in:
parent
3a15e60644
commit
7947fca117
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ import type { Grade, User } from "~/lib/api";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { DateTime } from "luxon";
|
import { DateTime } from "luxon";
|
||||||
|
|
||||||
|
export const HARDCODED_HIDDEN_SUBJECTS = ["Colles préfet"]
|
||||||
|
|
||||||
export default function GradesChart({
|
export default function GradesChart({
|
||||||
grades,
|
grades,
|
||||||
subjects,
|
subjects,
|
||||||
|
|
@ -51,7 +53,7 @@ export default function GradesChart({
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{subjects.map((subject, index) => (
|
{subjects.filter((s) => !HARDCODED_HIDDEN_SUBJECTS.includes(s)).map((subject, index) => (
|
||||||
<Line
|
<Line
|
||||||
key={index}
|
key={index}
|
||||||
type="linear"
|
type="linear"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue