From 4712c427290ff4072a9b859fc24ee083a8d24116 Mon Sep 17 00:00:00 2001 From: LeeCh0129 Date: Sat, 21 Jun 2025 01:51:19 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=EB=B0=94,=20=EB=82=B4=EB=8C=80=EC=8B=9C=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20react=20key=20=EC=A4=91=EB=B3=B5=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MyDashboardGrid/MyDashboardGrid.tsx | 5 ++++- src/app/shared/components/common/sidebar/Sidebar.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx b/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx index 9f87c89..72d167a 100644 --- a/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx +++ b/src/app/mydashboard/components/MyDashboardGrid/MyDashboardGrid.tsx @@ -67,7 +67,10 @@ export default function MyDashboardGrid() { {/* 대시보드 카드 */} {dashboards.map((dashboard) => ( - + ))} diff --git a/src/app/shared/components/common/sidebar/Sidebar.tsx b/src/app/shared/components/common/sidebar/Sidebar.tsx index 3a781de..00737f3 100644 --- a/src/app/shared/components/common/sidebar/Sidebar.tsx +++ b/src/app/shared/components/common/sidebar/Sidebar.tsx @@ -69,7 +69,7 @@ export default function Sidebar(): JSX.Element { ) : ( dashboards.map((dashboard) => ( handleDashboardClick(dashboard)} From 955e40bd9286226a0adee36ed65929d2064c0bf8 Mon Sep 17 00:00:00 2001 From: LeeCh0129 Date: Sat, 21 Jun 2025 01:52:04 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EB=8C=80=EC=8B=9C?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=EC=83=81=EC=84=B8=20401=20=EC=9D=B8?= =?UTF-8?q?=EC=A6=9D=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/features/dashboard_Id/api/fetchCards.ts | 3 +-- src/app/features/dashboard_Id/api/fetchColumns.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/features/dashboard_Id/api/fetchCards.ts b/src/app/features/dashboard_Id/api/fetchCards.ts index ab717ad..e04443c 100644 --- a/src/app/features/dashboard_Id/api/fetchCards.ts +++ b/src/app/features/dashboard_Id/api/fetchCards.ts @@ -1,6 +1,5 @@ -import api from '@/app/shared/lib/testAxios' +import api from '@/app/shared/lib/axios' -// import api from '@/app/shared/lib/axios' import { CardResponse } from '../type/Card.type' export async function fetchCards( diff --git a/src/app/features/dashboard_Id/api/fetchColumns.ts b/src/app/features/dashboard_Id/api/fetchColumns.ts index 3310193..14cc3ac 100644 --- a/src/app/features/dashboard_Id/api/fetchColumns.ts +++ b/src/app/features/dashboard_Id/api/fetchColumns.ts @@ -1,6 +1,5 @@ -import api from '@/app/shared/lib/testAxios' +import api from '@/app/shared/lib/axios' -// import api from '@/app/shared/lib/axios' import { Column, ColumnsResponse } from '../type/Column.type' export async function fetchColumns(dashboardId: number): Promise { From c3775964353397cb8a4c2527fc987c4ecf034d88 Mon Sep 17 00:00:00 2001 From: LeeCh0129 Date: Sat, 21 Jun 2025 02:33:38 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=AB=A7=20modify:=20axios=20import=20?= =?UTF-8?q?=EB=AA=85=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/features/dashboard_Id/api/fetchCards.ts | 4 ++-- src/app/features/dashboard_Id/api/fetchColumns.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/features/dashboard_Id/api/fetchCards.ts b/src/app/features/dashboard_Id/api/fetchCards.ts index e04443c..c059c5d 100644 --- a/src/app/features/dashboard_Id/api/fetchCards.ts +++ b/src/app/features/dashboard_Id/api/fetchCards.ts @@ -1,4 +1,4 @@ -import api from '@/app/shared/lib/axios' +import authHttpClient from '@/app/shared/lib/axios' import { CardResponse } from '../type/Card.type' @@ -6,7 +6,7 @@ export async function fetchCards( columnId: number, size: number = 10, ): Promise { - const res = await api.get( + const res = await authHttpClient.get( `/${process.env.NEXT_PUBLIC_TEAM_ID}/cards?size=${size}&columnId=${columnId}`, ) return res.data diff --git a/src/app/features/dashboard_Id/api/fetchColumns.ts b/src/app/features/dashboard_Id/api/fetchColumns.ts index 14cc3ac..dd741d2 100644 --- a/src/app/features/dashboard_Id/api/fetchColumns.ts +++ b/src/app/features/dashboard_Id/api/fetchColumns.ts @@ -1,4 +1,4 @@ -import api from '@/app/shared/lib/axios' +import authHttpClient from '@/app/shared/lib/axios' import { Column, ColumnsResponse } from '../type/Column.type' @@ -7,7 +7,7 @@ export async function fetchColumns(dashboardId: number): Promise { throw new Error('dashboardId가 유효하지 않습니다.') } - const res = await api.get( + const res = await authHttpClient.get( `/${process.env.NEXT_PUBLIC_TEAM_ID}/columns?dashboardId=${dashboardId}`, )