Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a48c616ecc | |||
| cd1149a23a | |||
| 58c8ff56ba |
@@ -240,7 +240,7 @@ export default function EditMobility() {
|
||||
</table>
|
||||
</div>
|
||||
))}
|
||||
<button onClick={handleSave} disabled={isSaving}>
|
||||
<button type="button" onClick={handleSave} disabled={isSaving}>
|
||||
{isSaving ? "Saving..." : "Confirm"}
|
||||
</button>
|
||||
</section>
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Promotion(props: PromotionProps) {
|
||||
<tbody>
|
||||
{props.students
|
||||
.filter((student) => student.promotionId === props.promo.id)
|
||||
.map((student) => <Student student={student} />)}
|
||||
.map((student) => <Student key={student.id} student={student} />)}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -104,7 +104,7 @@ export default function UploadStudents() {
|
||||
return (
|
||||
<>
|
||||
<input type="file" accept=".xlsx, .xls" onChange={handleFileChange} />
|
||||
<button onClick={confirmUpload}>Confirm Upload</button>
|
||||
<button type="button" onClick={confirmUpload}>Confirm Upload</button>
|
||||
<p>{statusMessage.value}</p>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user