From 966be41d455be98697b1f966f1206bbe2e18f8f5 Mon Sep 17 00:00:00 2001 From: pbc1017 Date: Wed, 3 Jan 2024 02:45:34 +0900 Subject: [PATCH] =?UTF-8?q?=EF=B8=8F=F0=9F=92=84=20edit=20activity=20dashb?= =?UTF-8?q?oard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/routes/feedback.js | 2 ++ .../admin/DashboardClubList/DashboardClubList.tsx | 2 +- front/src/components/admin/DashboardClubList/style.css | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/back/routes/feedback.js b/back/routes/feedback.js index 039a6d7..04bc9fb 100644 --- a/back/routes/feedback.js +++ b/back/routes/feedback.js @@ -492,6 +492,8 @@ router.get("/activity_submit_list", async (req, res) => { }) ); + clubData.sort((a, b) => b.feedbackTypeOne - a.feedbackTypeOne); + res.json({ totalActivities, nonFeedbackTypeOneActivities, diff --git a/front/src/components/admin/DashboardClubList/DashboardClubList.tsx b/front/src/components/admin/DashboardClubList/DashboardClubList.tsx index b27790e..bc897df 100644 --- a/front/src/components/admin/DashboardClubList/DashboardClubList.tsx +++ b/front/src/components/admin/DashboardClubList/DashboardClubList.tsx @@ -120,7 +120,7 @@ export const DashboardClubList = ({