mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 16:03:21 +00:00
feat: Validation du dossier d'inscription en affectant l'élève à une
classe de son niveau / création d'une fenêtre de visualisation d'une classe (en cours)
This commit is contained in:
@ -70,6 +70,11 @@ export const ClassesProvider = ({ children }) => {
|
||||
});
|
||||
};
|
||||
|
||||
const getNiveauLabel = (level) => {
|
||||
const niveau = allNiveaux.find((n) => n.id === level);
|
||||
return niveau ? niveau.name : 'Niveau inconnu';
|
||||
};
|
||||
|
||||
const getNiveauxTabs = (levels) => {
|
||||
// Trier les levels par id
|
||||
const sortedNiveaux = levels.sort((a, b) => a - b);
|
||||
@ -232,6 +237,7 @@ export const ClassesProvider = ({ children }) => {
|
||||
value={{
|
||||
schoolYears,
|
||||
getNiveauxLabels,
|
||||
getNiveauLabel,
|
||||
getNiveauxTabs,
|
||||
generateAgeToNiveaux,
|
||||
niveauxPremierCycle,
|
||||
|
||||
Reference in New Issue
Block a user