From 13c69e4caa817b5ac8a8b4d43431c2bb124452f2 Mon Sep 17 00:00:00 2001 From: Yeeun Park Date: Wed, 8 Jan 2025 00:42:08 +0900 Subject: [PATCH 1/4] =?UTF-8?q?#247=20fix:=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=8F=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EC=9E=AC=EC=84=A4=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 3 ++- frontend/src/AppContent.tsx | 5 ++++- frontend/src/pages/News/NoticeBoard/hooks/useNoticeBoard.ts | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index f8058af0..c315a7d0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,9 +16,10 @@ "@types/styled-components": "^5.1.34", "axios": "^1.7.7", "dompurify": "^3.1.7", - "framer-motion": "^11.15.0", + "framer-motion": "^11.16.0", "lucide-react": "^0.456.0", "moment": "^2.30.1", + "motion": "^11.16.0", "react": "^18.3.1", "react-calendar": "^5.1.0", "react-dom": "^18.3.1", diff --git a/frontend/src/AppContent.tsx b/frontend/src/AppContent.tsx index 36ef8e72..498a0a1f 100644 --- a/frontend/src/AppContent.tsx +++ b/frontend/src/AppContent.tsx @@ -201,7 +201,10 @@ function AppContent() { {/* graduate */} } /> - } /> + } + /> {/* about */} } /> diff --git a/frontend/src/pages/News/NoticeBoard/hooks/useNoticeBoard.ts b/frontend/src/pages/News/NoticeBoard/hooks/useNoticeBoard.ts index 7a4feea1..537d09c1 100644 --- a/frontend/src/pages/News/NoticeBoard/hooks/useNoticeBoard.ts +++ b/frontend/src/pages/News/NoticeBoard/hooks/useNoticeBoard.ts @@ -60,7 +60,10 @@ export const useNoticeBoard = () => { if (allowedSortFields.includes(state.filters.sort.field)) { params.append('sort', state.filters.sort.field); - params.append('sortDirection', state.filters.sort.direction.toUpperCase()); + params.append( + 'sortDirection', + state.filters.sort.direction.toUpperCase(), + ); } const response = await axios.get( From fcd9c8b3bf237fea145297a029325600420489ae Mon Sep 17 00:00:00 2001 From: Yeeun Park Date: Wed, 8 Jan 2025 03:43:43 +0900 Subject: [PATCH 2/4] =?UTF-8?q?#247=20style:=20=EA=B5=90=EC=88=98=20?= =?UTF-8?q?=EC=86=8C=EA=B0=9C=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/About/Faculty/TabSectionStyle.ts | 1 + .../pages/About/Faculty/tabs/Publications.tsx | 110 +++++++++--------- .../About/Faculty/tabs/PublicationsStyle.ts | 33 ++++++ 3 files changed, 90 insertions(+), 54 deletions(-) diff --git a/frontend/src/pages/About/Faculty/TabSectionStyle.ts b/frontend/src/pages/About/Faculty/TabSectionStyle.ts index 0b941f2e..b7e5cad1 100644 --- a/frontend/src/pages/About/Faculty/TabSectionStyle.ts +++ b/frontend/src/pages/About/Faculty/TabSectionStyle.ts @@ -65,6 +65,7 @@ export const TabButton = styled.button<{ $isActive: boolean }>` export const TabContent = styled.div` padding: 2rem; min-height: 400px; + width: fit-content; ${media.mobile} { padding: 1.5rem; diff --git a/frontend/src/pages/About/Faculty/tabs/Publications.tsx b/frontend/src/pages/About/Faculty/tabs/Publications.tsx index 91ed8a2d..a7cf9db6 100644 --- a/frontend/src/pages/About/Faculty/tabs/Publications.tsx +++ b/frontend/src/pages/About/Faculty/tabs/Publications.tsx @@ -1,12 +1,5 @@ import React, { useState, useEffect, useMemo } from 'react'; -import { - AlertTriangle, - Search, - Calendar, - Book, - ExternalLink, - FileText, -} from 'lucide-react'; +import { AlertTriangle, Search, ExternalLink } from 'lucide-react'; import axios from 'axios'; import { apiEndpoints } from '../../../../config/apiConfig'; import * as S from './PublicationsStyle'; @@ -142,7 +135,7 @@ const Publications: React.FC = ({ professorId }) => { value={selectedYear} onChange={(e) => setSelectedYear(e.target.value)} > - + {years.slice(1).map((year) => (