+
+
+
+ {editing ? (
+ setFirstName(e.target.value)}
+ value={firstName}
+ />
+ ) : (
+ {studentResponse.firstName}
+ )}
+
+
+
+ {editing ? (
+ setLastName(e.target.value)}
+ value={lastName}
+ />
+ ) : (
+ {studentResponse.lastName}
+ )}
+
+
+
+
+
+ {editing ? (
+
+
+
+
+ ) : (
+
+ )}
+
+
+
+ {studentCasesResponse && (
+
+
+ Seurantatapaukset
+
+
+
+ {editingCase === true && (
+ {
+ setEditingCase(false)
+ loadStudentCases()
+ }}
+ onCancelled={() => setEditingCase(false)}
+ />
+ )}
+
+ {studentCasesResponse.map((studentCase) => (
+ setEditingCase(studentCase.id)}
+ onSaved={() => {
+ setEditingCase(false)
+ loadStudentCases()
+ }}
+ onCancelled={() => setEditingCase(false)}
+ />
+ ))}
+
+
+ )}
+