From 822740ce445c1e8105301b5c2e25383f075edb5a Mon Sep 17 00:00:00 2001 From: Limchansol Date: Sun, 10 Mar 2024 01:17:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=EC=97=B0=EA=B5=AC=EC=8B=A4=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=ED=81=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EC=96=B8=ED=8A=B8=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0=20(#154)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 연구실 페이지 use client 설정 * rename: 연구실 페이지 상세 컴포넌트 위치 이동 --- app/[locale]/research/labs/{ => [id]}/ResearchLabDetails.tsx | 4 +++- app/[locale]/research/labs/[id]/page.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) rename app/[locale]/research/labs/{ => [id]}/ResearchLabDetails.tsx (96%) diff --git a/app/[locale]/research/labs/ResearchLabDetails.tsx b/app/[locale]/research/labs/[id]/ResearchLabDetails.tsx similarity index 96% rename from app/[locale]/research/labs/ResearchLabDetails.tsx rename to app/[locale]/research/labs/[id]/ResearchLabDetails.tsx index 2c00a658a..7034f5cee 100644 --- a/app/[locale]/research/labs/ResearchLabDetails.tsx +++ b/app/[locale]/research/labs/[id]/ResearchLabDetails.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Link } from '@/navigation'; import PentagonLong from '@/public/image/pentagon_long.svg'; import PentagonShort from '@/public/image/pentagon_short.svg'; @@ -11,7 +13,7 @@ import { getPath } from '@/utils/page'; import { replaceSpaceWithDash } from '@/utils/replaceCharacter'; import { researchGroups } from '@/utils/segmentNode'; -import ResearchLabInfo from './ResesarchLabInfo'; +import ResearchLabInfo from '../ResesarchLabInfo'; export default function ResearchLabDetails({ lab }: { lab: ResearchLab }) { const { screenType } = useResponsive(); diff --git a/app/[locale]/research/labs/[id]/page.tsx b/app/[locale]/research/labs/[id]/page.tsx index 8ffa48bf0..870b13f87 100644 --- a/app/[locale]/research/labs/[id]/page.tsx +++ b/app/[locale]/research/labs/[id]/page.tsx @@ -1,6 +1,6 @@ import { getResearchLab } from '@/apis/research'; -import ResearchLabDetails from '@/app/[locale]/research/labs/ResearchLabDetails'; +import ResearchLabDetails from '@/app/[locale]/research/labs/[id]/ResearchLabDetails'; import PageLayout from '@/components/layout/pageLayout/PageLayout';