From 9d175ddd74791344160d4780d52df5d78a0029d5 Mon Sep 17 00:00:00 2001
From: KaichiManabe <154493010+KaichiManabe@users.noreply.github.com>
Date: Wed, 9 Oct 2024 10:23:39 +0900
Subject: [PATCH] v1.0.1 release (#465)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
# PRの概要
授業IDがないと判別できないケースが多いため選択時に表示するようにした
## 補足
## レビューリクエストを出す前にチェック!
- [x] 改めてセルフレビューしたか
- [x] 手動での動作検証を行ったか
- [x] server の機能追加ならば、テストを書いたか
- 理由: 書いた | server の機能追加ではない
- [x] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか
- 理由: 書いた | 間違った使い方は存在しない
- [x] わかりやすいPRになっているか
# PRの概要
## 具体的な変更内容
## 影響範囲
## 動作要件
## 補足
## レビューリクエストを出す前にチェック!
- [ ] 改めてセルフレビューしたか
- [ ] 手動での動作検証を行ったか
- [ ] server の機能追加ならば、テストを書いたか
- 理由: 書いた | server の機能追加ではない
- [ ] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか
- 理由: 書いた | 間違った使い方は存在しない
- [ ] わかりやすいPRになっているか
Co-authored-by: Shogo NAKAMURA <104970808+naka-12@users.noreply.github.com>
---
.../course/components/SelectCourseDialog.tsx | 47 +++++++++++++------
1 file changed, 32 insertions(+), 15 deletions(-)
diff --git a/web/src/components/course/components/SelectCourseDialog.tsx b/web/src/components/course/components/SelectCourseDialog.tsx
index 2a625369..046a3475 100644
--- a/web/src/components/course/components/SelectCourseDialog.tsx
+++ b/web/src/components/course/components/SelectCourseDialog.tsx
@@ -69,21 +69,35 @@ export default function SelectCourseDialog({
<>
-
-
- 現在の授業: {currentEdit?.course?.name ?? "-"}
-
- {
- if (!currentEdit?.course?.id) return;
+
+
+ 現在の授業
+ {currentEdit?.course ? (
+
+
+
+ {currentEdit?.course?.name ?? "-"}
+
+ {`${currentEdit?.course?.teacher ?? "-"} / ${
+ currentEdit?.course?.id ?? "-"
+ }`}
+
+ {
+ if (!currentEdit?.course?.id) return;
- setNewCourse(currentEdit.course);
- setIsDeleteConfirmDialogOpen(true);
- }}
- >
-
-
+ setNewCourse(currentEdit.course);
+ setIsDeleteConfirmDialogOpen(true);
+ }}
+ >
+
+
+
+ ) : (
+ 未登録
+ )}
+
{
@@ -111,7 +125,10 @@ export default function SelectCourseDialog({
setIsConfirmDialogOpen(true);
}}
>
- {`${course.name}(${course.teacher})`}
+
+ {course.name}
+ {`${course.teacher} / ${course.id}`}
+
))}