Finalized students app

This commit is contained in:
Kevin FEDYNA
2025-01-28 10:03:20 +01:00
parent e88045c952
commit 4c54283bfd
15 changed files with 289 additions and 184 deletions
@@ -0,0 +1,13 @@
type StudentProps = { student: Student; promo?: number };
export default function Student(props: StudentProps) {
return (
<tr key={props.student.userId}>
<td>{props.student.userId}</td>
<td>{props.student.firstName}</td>
<td>{props.student.lastName}</td>
<td>{props.student.mail}</td>
{props.promo && <td>{props.promo}</td>}
</tr>
);
}