Finalized students app
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user