From d233b0c62a9d7bc0a98d78e02f9827eac677db9e Mon Sep 17 00:00:00 2001 From: machida Date: Fri, 28 Jun 2024 20:10:57 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=87=E3=82=B6=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E5=BE=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/components/MentorCourses.jsx | 4 ++-- app/javascript/components/User.jsx | 2 +- app/javascript/components/user.vue | 14 ++++++++------ .../application/blocks/admin/_admin-table.sass | 2 ++ .../blocks/header/_header-dropdown.sass | 3 ++- app/views/users/_user.html.slim | 13 ++++++++----- 6 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/javascript/components/MentorCourses.jsx b/app/javascript/components/MentorCourses.jsx index 7652db35be5..1b88a8a619d 100644 --- a/app/javascript/components/MentorCourses.jsx +++ b/app/javascript/components/MentorCourses.jsx @@ -22,7 +22,7 @@ export default function MentorCourses() { const courses = data.courses return ( -
+
@@ -43,7 +43,7 @@ function MentorCourse(props) { return ( - diff --git a/app/javascript/components/User.jsx b/app/javascript/components/User.jsx index 9dc7882ff90..0680308695e 100644 --- a/app/javascript/components/User.jsx +++ b/app/javascript/components/User.jsx @@ -25,7 +25,7 @@ export default function User({ user, currentUser }) { return (
-
+
{currentUser && (currentUser.mentor || currentUser.admin) && diff --git a/app/javascript/components/user.vue b/app/javascript/components/user.vue index 359b11290e9..1354517e2a6 100644 --- a/app/javascript/components/user.vue +++ b/app/javascript/components/user.vue @@ -1,6 +1,6 @@
+ {course.title} {course.description}