From f30697b6f92fbd751841a52a8af3f2d524970f53 Mon Sep 17 00:00:00 2001 From: junseublim Date: Wed, 21 Aug 2024 22:36:34 +0900 Subject: [PATCH 01/11] =?UTF-8?q?feat:=20=EB=B3=B4=EB=93=9C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=95=84=EC=9D=B4=EC=BD=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/icons/delete.svg | 8 ++++++++ src/app/mypage/boards/components/BoardEditPopup.tsx | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 public/icons/delete.svg diff --git a/public/icons/delete.svg b/public/icons/delete.svg new file mode 100644 index 0000000..fc92500 --- /dev/null +++ b/public/icons/delete.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/app/mypage/boards/components/BoardEditPopup.tsx b/src/app/mypage/boards/components/BoardEditPopup.tsx index cd6f9e0..529e306 100644 --- a/src/app/mypage/boards/components/BoardEditPopup.tsx +++ b/src/app/mypage/boards/components/BoardEditPopup.tsx @@ -1,5 +1,6 @@ import Popup from '@/components/Popup' import React from 'react' +import DeleteIcon from 'public/icons/delete.svg' interface BoardEditPopupProps { isOpen: boolean @@ -14,9 +15,13 @@ const BoardEditPopup = ({ }: BoardEditPopupProps) => { return ( -
-
+
+
보드 삭제하기 +
From 9d9cbc09c5ab41e0e926e36c16c5899c1dc470a9 Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:36:48 +0900 Subject: [PATCH 02/11] =?UTF-8?q?feat:=20=EB=B3=B4=EB=93=9C=20=EB=A1=9C?= =?UTF-8?q?=EB=94=A9=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(board)/board/[boardId]/loading.tsx | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/app/(board)/board/[boardId]/loading.tsx diff --git a/src/app/(board)/board/[boardId]/loading.tsx b/src/app/(board)/board/[boardId]/loading.tsx deleted file mode 100644 index 4595954..0000000 --- a/src/app/(board)/board/[boardId]/loading.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import Loader from '@/components/Loading' - -const Loading = () => { - return ( -
- -
- ) -} - -export default Loading From b4bab7ed66f8357a0d06a37f21fd1da49cdcbf58 Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:37:25 +0900 Subject: [PATCH 03/11] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=AC=B8=EA=B5=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(onboarding)/login/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(onboarding)/login/page.tsx b/src/app/(onboarding)/login/page.tsx index 2cb66ac..edbac20 100644 --- a/src/app/(onboarding)/login/page.tsx +++ b/src/app/(onboarding)/login/page.tsx @@ -23,7 +23,7 @@ const LoginPage = () => { />
- 지금 폴라보와 함께 추억을 담아보세요! + 지금 폴라보와 함께 추억을 공유해보세요!
From 1f5b2f6f117574a60653bea880d971111815b77f Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:40:03 +0900 Subject: [PATCH 04/11] =?UTF-8?q?feat:=20=EB=88=84=EC=A0=81=20=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20=EC=83=9D=EC=84=B1=EC=88=98=20=EC=BA=90=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/api/board.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/api/board.ts b/src/lib/api/board.ts index 357e916..fea9ed9 100644 --- a/src/lib/api/board.ts +++ b/src/lib/api/board.ts @@ -23,9 +23,7 @@ export const postBoard = async ( export const getTotalBoards = async (): Promise => { const res = await get('/api/v1/boards/total-count', { - next: { - revalidate: 60 * 60, // 1 hour - }, + cache: 'no-cache', }) return res.data From daa2677f2b07e39b432030d1bc7ae57127b26ae1 Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:41:35 +0900 Subject: [PATCH 05/11] =?UTF-8?q?feat:=20=EC=8B=9C=EC=9E=91=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EB=AC=B8=EA=B5=AC=20'?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=EB=A7=8C=EB=93=A4=EA=B8=B0'=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(home)/_components/CreateBoardBtn.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(home)/_components/CreateBoardBtn.tsx b/src/app/(home)/_components/CreateBoardBtn.tsx index 04226dd..d40fe03 100644 --- a/src/app/(home)/_components/CreateBoardBtn.tsx +++ b/src/app/(home)/_components/CreateBoardBtn.tsx @@ -27,7 +27,7 @@ const CreateBoardBtn = () => { className="mb-3 shadow-[0px_0px_20px_0px_rgba(255,255,255,0.6)]" onClick={handleClick} > - 시작하기 + 보드 만들기 Date: Thu, 22 Aug 2024 23:43:28 +0900 Subject: [PATCH 06/11] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=EC=8B=9C=20=ED=99=88=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(onboarding)/signup/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(onboarding)/signup/page.tsx b/src/app/(onboarding)/signup/page.tsx index 335412c..b236852 100644 --- a/src/app/(onboarding)/signup/page.tsx +++ b/src/app/(onboarding)/signup/page.tsx @@ -8,7 +8,7 @@ const SignUpPage = async () => { const session = await auth() if (session && !session.newUser) { - redirect('/board/create') + redirect('/') } return (
From 3554f519c91f23f26b2ee7a38fd9472ec3f2b28e Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:43:44 +0900 Subject: [PATCH 07/11] =?UTF-8?q?feat:=20=ED=83=88=ED=87=B4=20=EB=AC=B8?= =?UTF-8?q?=EA=B5=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mypage/leave/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/mypage/leave/page.tsx b/src/app/mypage/leave/page.tsx index e432829..1319881 100644 --- a/src/app/mypage/leave/page.tsx +++ b/src/app/mypage/leave/page.tsx @@ -6,7 +6,7 @@ const Page = () => { const leaveCheckTitle = '탈퇴전 꼭 확인해주세요.' const leaveReasonTitle = '탈퇴하려는 이유를 알려주세요.' const leaveDescription = - '계정을 삭제하면 복구가 불가능하며, 같은 계정으로\n재가입이 어려워요. 회원정보 및 보드가 모두\n삭제되며, 삭제된 데이터는 복구가 불가능해요.' + '계정을 삭제하면 복구가 불가능하며\n회원정보 및 보드가 모두 삭제돼요. \n또한, 삭제된 데이터는 복구가 불가능해요.' return (
From 04b99f7c6061e57df3b1ac57dfd8c053ec6f4765 Mon Sep 17 00:00:00 2001 From: junseublim Date: Thu, 22 Aug 2024 23:45:15 +0900 Subject: [PATCH 08/11] =?UTF-8?q?Revert=20"feat:=20=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EC=95=84=EC=9D=B4=EC=BD=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f30697b6f92fbd751841a52a8af3f2d524970f53. --- public/icons/delete.svg | 8 -------- src/app/mypage/boards/components/BoardEditPopup.tsx | 9 ++------- 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 public/icons/delete.svg diff --git a/public/icons/delete.svg b/public/icons/delete.svg deleted file mode 100644 index fc92500..0000000 --- a/public/icons/delete.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/app/mypage/boards/components/BoardEditPopup.tsx b/src/app/mypage/boards/components/BoardEditPopup.tsx index 529e306..cd6f9e0 100644 --- a/src/app/mypage/boards/components/BoardEditPopup.tsx +++ b/src/app/mypage/boards/components/BoardEditPopup.tsx @@ -1,6 +1,5 @@ import Popup from '@/components/Popup' import React from 'react' -import DeleteIcon from 'public/icons/delete.svg' interface BoardEditPopupProps { isOpen: boolean @@ -15,13 +14,9 @@ const BoardEditPopup = ({ }: BoardEditPopupProps) => { return ( -
-
+
+
보드 삭제하기 -
From 8597ac4be435045e93ccc9c4560b2ae3fca37ef3 Mon Sep 17 00:00:00 2001 From: junseublim Date: Fri, 23 Aug 2024 00:05:25 +0900 Subject: [PATCH 09/11] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=ED=8E=98=EC=9D=B4=EC=A7=80,=20=EC=98=A8?= =?UTF-8?q?=EB=B3=B4=EB=94=A9=20=EC=B6=94=EA=B0=80=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=20=EA=B4=80=EB=A0=A8=20=EA=B5=AC=EC=A1=B0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_components/contexts/ProfileContext.tsx | 17 +++++++---- .../signup/_components/steps/BirthDtForm.tsx | 10 ++++--- .../signup/_components/steps/NicknameForm.tsx | 8 ++--- .../profileEdit/_components/ProfileForm.tsx | 9 ++++++ src/components/BirthDateInput/index.tsx | 29 +++++++++---------- src/components/TextInput/NicknameInput.tsx | 9 ------ 6 files changed, 43 insertions(+), 39 deletions(-) diff --git a/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx b/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx index a427d3e..9514e72 100644 --- a/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx +++ b/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx @@ -9,6 +9,7 @@ import { useContext, useMemo, useState, + useEffect, } from 'react' interface ProfileContextProps { @@ -16,7 +17,7 @@ interface ProfileContextProps { newBirthDt: UserProfile['birthDt'] newGender: UserProfile['gender'] setNewName: Dispatch> - setBirthDt: Dispatch> + setNewBirthDt: Dispatch> setGender: Dispatch> } @@ -28,19 +29,23 @@ export const ProfileProvider = ({ children: React.ReactNode }) => { const { data: session } = useSession() - const [newName, setNewName] = useState( - session?.profile.nickName ?? '', - ) - const [newBirthDt, setBirthDt] = useState(undefined) + const [newName, setNewName] = useState('') + const [newBirthDt, setNewBirthDt] = + useState(undefined) const [newGender, setGender] = useState('NONE') + useEffect(() => { + setNewName(session?.profile.nickName ?? '') + setNewBirthDt(session?.profile.birthDt) + }, [session]) + const value = useMemo( () => ({ newName, newBirthDt, newGender, setNewName, - setBirthDt, + setNewBirthDt, setGender, }), [newName, newBirthDt, newGender], diff --git a/src/app/(onboarding)/signup/_components/steps/BirthDtForm.tsx b/src/app/(onboarding)/signup/_components/steps/BirthDtForm.tsx index 881e1e0..25a70d2 100644 --- a/src/app/(onboarding)/signup/_components/steps/BirthDtForm.tsx +++ b/src/app/(onboarding)/signup/_components/steps/BirthDtForm.tsx @@ -12,18 +12,19 @@ const BirthDtForm = ({ }: { handleSubmit: (profile: UserProfile) => Promise }) => { - const { newName, newBirthDt, setBirthDt, newGender } = useProfile() + const { newName, newBirthDt, setNewBirthDt, newGender } = useProfile() const { nextStep } = useStep() const [hasError, setHasError] = useState(false) const [modalOpen, setModalOpen] = useState(false) const onSubmit = async () => { if (newBirthDt) { - if (validateBirthDt(newBirthDt) === false) { + if (!validateBirthDt(newBirthDt)) { setModalOpen(true) return } } + await handleSubmit({ nickName: newName, birthDt: newBirthDt, @@ -37,7 +38,7 @@ const BirthDtForm = ({
{newName} - {'님의 \n 생일을 입력해주세요!'} + {'님의\n생일을 입력해주세요!'}

추가 정보를 입력하시면 나에게 딱 맞는 보드 주제를 추천해드려요 :) @@ -45,7 +46,8 @@ const BirthDtForm = ({

diff --git a/src/app/(onboarding)/signup/_components/steps/NicknameForm.tsx b/src/app/(onboarding)/signup/_components/steps/NicknameForm.tsx index 105c85d..127fecf 100644 --- a/src/app/(onboarding)/signup/_components/steps/NicknameForm.tsx +++ b/src/app/(onboarding)/signup/_components/steps/NicknameForm.tsx @@ -14,14 +14,12 @@ const NicknameForm = ({ handleSubmit: (profile: UserProfile) => Promise }) => { const { newName, setNewName, newBirthDt, newGender } = useProfile() - const [nickname, setNickname] = useState('') const [hasError, setHasError] = useState(false) - const isEmpty = nickname.length === 0 + const isEmpty = newName.length === 0 const { nextStep } = useStep() const createNickname = async () => { - setNewName(nickname) await handleSubmit({ nickName: newName, birthDt: newBirthDt, @@ -37,8 +35,8 @@ const NicknameForm = ({
} /> diff --git a/src/app/mypage/profileEdit/_components/ProfileForm.tsx b/src/app/mypage/profileEdit/_components/ProfileForm.tsx index 626fb55..19c10b9 100644 --- a/src/app/mypage/profileEdit/_components/ProfileForm.tsx +++ b/src/app/mypage/profileEdit/_components/ProfileForm.tsx @@ -29,6 +29,14 @@ const ProfileForm = ({ children }: { children: ReactNode }) => { const [unChanged, setUnChanged] = useState(true) const [modalOpen, setModalOpen] = useState(false) + useEffect(() => { + if (session?.profile) { + setNewName(session?.profile.nickName) + setNewBirthDt(session?.profile.birthDt) + setNewGender(session?.profile.gender) + } + }, [session]) + useEffect(() => { if ( session?.profile.nickName === newName && @@ -86,6 +94,7 @@ const ProfileForm = ({ children }: { children: ReactNode }) => {
생년월일 > setHasError: Dispatch> className?: React.ComponentProps<'div'>['className'] } const BirthDateInput = ({ + value, setBirthDt, setHasError, className = '', @@ -26,16 +27,14 @@ const BirthDateInput = ({ const [month, setMonth] = useState('') const [day, setDay] = useState('') - const { data: session } = useSession() - useEffect(() => { - if (!session || !session.profile.birthDt) return + if (!value) return - const [y, m, d] = session.profile.birthDt.split('-') + const [y, m, d] = value.split('-') setYear(y) setMonth(m) setDay(d) - }, [session]) + }, [value]) useEffect(() => { if (!year && !month && !day) { @@ -51,23 +50,23 @@ const BirthDateInput = ({ }, [year, month, day]) const handleYearChange = (e: ChangeEvent) => { - const { value } = e.target - if (/^\d{0,4}$/.test(value)) { - setYear(value) + const { value: inputValue } = e.target + if (/^\d{0,4}$/.test(inputValue)) { + setYear(inputValue) } } const handleMonthChange = (e: ChangeEvent) => { - const { value } = e.target - if (/^\d{0,2}$/.test(value) && +value <= 12) { - setMonth(value) + const { value: inputValue } = e.target + if (/^\d{0,2}$/.test(inputValue) && +inputValue <= 12) { + setMonth(inputValue) } } const handleDayChange = (e: ChangeEvent) => { - const { value } = e.target - if (/^\d{0,2}$/.test(value) && +value <= 31) { - setDay(value) + const { value: inputValue } = e.target + if (/^\d{0,2}$/.test(inputValue) && +inputValue <= 31) { + setDay(inputValue) } } return ( diff --git a/src/components/TextInput/NicknameInput.tsx b/src/components/TextInput/NicknameInput.tsx index 0a002e5..5c041a9 100644 --- a/src/components/TextInput/NicknameInput.tsx +++ b/src/components/TextInput/NicknameInput.tsx @@ -8,7 +8,6 @@ import { useEffect, useState, } from 'react' -import { useSession } from 'next-auth/react' import TextInput from '.' const MAX_NICKNAME_LENGTH = 10 @@ -29,14 +28,6 @@ const NicknameInput = ({ }: NicknameInputProps) => { const [errorMessage, setErrorMessage] = useState('') - const { data: session } = useSession() - - useEffect(() => { - if (session) { - setValue(session.profile.nickName) - } - }, [session]) - useEffect(() => { setHasError(errorMessage.length > 0) }, [errorMessage]) From 2d3042753ccdfe0ad140c025bbf63f6db7189043 Mon Sep 17 00:00:00 2001 From: junseublim Date: Fri, 23 Aug 2024 00:10:56 +0900 Subject: [PATCH 10/11] =?UTF-8?q?feat:=20setGender=20->=20setNewGender=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../signup/_components/contexts/ProfileContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx b/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx index 9514e72..3433644 100644 --- a/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx +++ b/src/app/(onboarding)/signup/_components/contexts/ProfileContext.tsx @@ -18,7 +18,7 @@ interface ProfileContextProps { newGender: UserProfile['gender'] setNewName: Dispatch> setNewBirthDt: Dispatch> - setGender: Dispatch> + setNewGender: Dispatch> } const ProfileContext = createContext(undefined) @@ -32,7 +32,7 @@ export const ProfileProvider = ({ const [newName, setNewName] = useState('') const [newBirthDt, setNewBirthDt] = useState(undefined) - const [newGender, setGender] = useState('NONE') + const [newGender, setNewGender] = useState('NONE') useEffect(() => { setNewName(session?.profile.nickName ?? '') @@ -46,7 +46,7 @@ export const ProfileProvider = ({ newGender, setNewName, setNewBirthDt, - setGender, + setNewGender, }), [newName, newBirthDt, newGender], ) From e0bda6d88b87e1372f7b70d953da0963635c9145 Mon Sep 17 00:00:00 2001 From: junseublim Date: Fri, 23 Aug 2024 00:31:42 +0900 Subject: [PATCH 11/11] =?UTF-8?q?feat:=20=EB=B3=B4=EB=93=9C=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20components=20->=20=5Fcomponents=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{components => _components/BoardList}/BoardEditPopup.tsx | 0 .../{components => _components}/BoardList/BoardItem.tsx | 4 ++-- .../{components => _components}/BoardList/BoardPagination.tsx | 0 .../BoardList}/DeleteBoardModal.tsx | 0 .../boards/{components => _components}/BoardList/index.tsx | 0 .../boards/{components => _components}/EmptyBoardList.tsx | 0 src/app/mypage/boards/page.tsx | 4 ++-- 7 files changed, 4 insertions(+), 4 deletions(-) rename src/app/mypage/boards/{components => _components/BoardList}/BoardEditPopup.tsx (100%) rename src/app/mypage/boards/{components => _components}/BoardList/BoardItem.tsx (91%) rename src/app/mypage/boards/{components => _components}/BoardList/BoardPagination.tsx (100%) rename src/app/mypage/boards/{components => _components/BoardList}/DeleteBoardModal.tsx (100%) rename src/app/mypage/boards/{components => _components}/BoardList/index.tsx (100%) rename src/app/mypage/boards/{components => _components}/EmptyBoardList.tsx (100%) diff --git a/src/app/mypage/boards/components/BoardEditPopup.tsx b/src/app/mypage/boards/_components/BoardList/BoardEditPopup.tsx similarity index 100% rename from src/app/mypage/boards/components/BoardEditPopup.tsx rename to src/app/mypage/boards/_components/BoardList/BoardEditPopup.tsx diff --git a/src/app/mypage/boards/components/BoardList/BoardItem.tsx b/src/app/mypage/boards/_components/BoardList/BoardItem.tsx similarity index 91% rename from src/app/mypage/boards/components/BoardList/BoardItem.tsx rename to src/app/mypage/boards/_components/BoardList/BoardItem.tsx index 7f2682e..f202702 100644 --- a/src/app/mypage/boards/components/BoardList/BoardItem.tsx +++ b/src/app/mypage/boards/_components/BoardList/BoardItem.tsx @@ -1,7 +1,7 @@ import EllipsisIcon from 'public/icons/ellipsis.svg' -import BoardEditPopup from '@/app/mypage/boards/components/BoardEditPopup' import React, { useState } from 'react' -import DeleteBoardModal from '@/app/mypage/boards/components/DeleteBoardModal' +import DeleteBoardModal from './DeleteBoardModal' +import BoardEditPopup from './BoardEditPopup' interface BoardListProps { title: string diff --git a/src/app/mypage/boards/components/BoardList/BoardPagination.tsx b/src/app/mypage/boards/_components/BoardList/BoardPagination.tsx similarity index 100% rename from src/app/mypage/boards/components/BoardList/BoardPagination.tsx rename to src/app/mypage/boards/_components/BoardList/BoardPagination.tsx diff --git a/src/app/mypage/boards/components/DeleteBoardModal.tsx b/src/app/mypage/boards/_components/BoardList/DeleteBoardModal.tsx similarity index 100% rename from src/app/mypage/boards/components/DeleteBoardModal.tsx rename to src/app/mypage/boards/_components/BoardList/DeleteBoardModal.tsx diff --git a/src/app/mypage/boards/components/BoardList/index.tsx b/src/app/mypage/boards/_components/BoardList/index.tsx similarity index 100% rename from src/app/mypage/boards/components/BoardList/index.tsx rename to src/app/mypage/boards/_components/BoardList/index.tsx diff --git a/src/app/mypage/boards/components/EmptyBoardList.tsx b/src/app/mypage/boards/_components/EmptyBoardList.tsx similarity index 100% rename from src/app/mypage/boards/components/EmptyBoardList.tsx rename to src/app/mypage/boards/_components/EmptyBoardList.tsx diff --git a/src/app/mypage/boards/page.tsx b/src/app/mypage/boards/page.tsx index 2080ad2..b030642 100644 --- a/src/app/mypage/boards/page.tsx +++ b/src/app/mypage/boards/page.tsx @@ -1,7 +1,7 @@ import Header from '@/components/Header' import { getMyBoards } from '@/lib/api/myBoard' -import EmptyBoardList from './components/EmptyBoardList' -import BoardList from './components/BoardList' +import EmptyBoardList from './_components/EmptyBoardList' +import BoardList from './_components/BoardList' const Page = async () => { const { pagination } = await getMyBoards()