[Classroom][FE] Fix UI error
This commit is contained in:
parent
f57c200163
commit
746775b563
@ -18,12 +18,6 @@ export function OnlineClassroom() {
|
|||||||
<div class="grid grid-cols-[16rem_25rem_1fr]">
|
<div class="grid grid-cols-[16rem_25rem_1fr]">
|
||||||
<Search setPerson={setPerson} />
|
<Search setPerson={setPerson} />
|
||||||
|
|
||||||
<ClassroomRegistration
|
|
||||||
surname_first_letter={person()?.person_paternal_surname[0] ?? ""}
|
|
||||||
userId={person()?.person_classroom_id ?? null}
|
|
||||||
onSuccess={() => setUpdateSIgnal((s) => s + 1)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Show when={person() !== null && person()!.person_classroom_id === null}>
|
<Show when={person() !== null && person()!.person_classroom_id === null}>
|
||||||
<ClassroomUser
|
<ClassroomUser
|
||||||
person={person()!}
|
person={person()!}
|
||||||
@ -31,6 +25,12 @@ export function OnlineClassroom() {
|
|||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={person() !== null && person()!.person_classroom_id !== null}>
|
<Show when={person() !== null && person()!.person_classroom_id !== null}>
|
||||||
|
<ClassroomRegistration
|
||||||
|
surname_first_letter={person()?.person_paternal_surname[0] ?? ""}
|
||||||
|
userId={person()?.person_classroom_id ?? null}
|
||||||
|
onSuccess={() => setUpdateSIgnal((s) => s + 1)}
|
||||||
|
/>
|
||||||
|
|
||||||
<ClassroomUserCourses
|
<ClassroomUserCourses
|
||||||
userid={person()!.person_classroom_id!}
|
userid={person()!.person_classroom_id!}
|
||||||
updateSignal={updateSignal()}
|
updateSignal={updateSignal()}
|
||||||
|
Loading…
Reference in New Issue
Block a user