mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-04-03 16:51:26 +00:00
feat: gestion des no data dans les table [#33]
This commit is contained in:
@ -12,6 +12,7 @@ import TeacherItem from './TeacherItem';
|
||||
import logger from '@/utils/logger';
|
||||
import { useEstablishment } from '@/context/EstablishmentContext';
|
||||
import SectionHeader from '@/components/SectionHeader';
|
||||
import AlertMessage from '@/components/AlertMessage';
|
||||
|
||||
const ItemTypes = {
|
||||
SPECIALITY: 'speciality',
|
||||
@ -579,6 +580,13 @@ const TeachersSection = ({
|
||||
data={newTeacher ? [newTeacher, ...teachers] : teachers}
|
||||
columns={columns}
|
||||
renderCell={renderTeacherCell}
|
||||
emptyMessage={
|
||||
<AlertMessage
|
||||
type="warning"
|
||||
title="Aucun enseignant enregistré"
|
||||
message="Veuillez procéder à la création d'un nouvel enseignant."
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Popup
|
||||
visible={popupVisible}
|
||||
|
||||
Reference in New Issue
Block a user