Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c283a34784 | |||
| cd1149a23a | |||
| 58c8ff56ba |
@@ -0,0 +1,26 @@
|
||||
name: "Check Deno code"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check-code:
|
||||
name: "Check Deno code"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: v2.x
|
||||
|
||||
- name: Check formatting
|
||||
run: deno fmt --check
|
||||
|
||||
- name: Check linting
|
||||
run: deno lint
|
||||
@@ -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