Skip to content

Commit 263caab

Browse files
committed
挙動修正
1 parent accad7d commit 263caab

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

web/components/course/components/CourseRegisterConfirmDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function CourseRegisterConfirmDialog({
7070
</div>
7171
)}
7272
{isLoading ? (
73-
<div className="alert alert-info">読み込み中...</div>
73+
<div className="px-4 py-2">読み込み中...</div>
7474
) : (
7575
mode === "add" &&
7676
coursesToBeDeletedString && (

web/components/course/components/SelectCourseDialog.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ export default function SelectCourseDialog({
129129
{newCourse && (
130130
<CourseRegisterConfirmDialog
131131
open={confirmDialogStatus !== "closed"}
132-
onClose={() => setConfirmDialogStatus("closed")}
132+
onClose={() => {
133+
setConfirmDialogStatus("closed");
134+
setNewCourse(null);
135+
}}
133136
courseToAddOrDelete={newCourse}
134137
mode={confirmDialogStatus === "delete" ? "delete" : "add"}
135138
handleSelectDialogClose={onClose}

0 commit comments

Comments
 (0)