File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const Page = () => {
2828 const [ isLoading , setIsLoading ] = useState ( true ) ;
2929
3030 const [ currentPage , setCurrentPage ] = useState ( 1 ) ;
31- const itemsPerPage = 5 ;
31+ const itemsPerPage = 4 ;
3232
3333 // 사용자 인증 상태 리스너 및 초기 플랜 목록 로드
3434 useEffect ( ( ) => {
@@ -208,6 +208,20 @@ const Page = () => {
208208 { /* 검색 바 */ }
209209 < SearchBar />
210210
211+ { /* 하단 추가 버튼 or 인라인 폼 */ }
212+ < div className = "mt-6 mb-4" >
213+ { isAdding ? (
214+ < InlineAddPlanForm
215+ onSave = { handleSavePlan }
216+ onCancel = { handleCancelAdd }
217+ />
218+ ) : (
219+ < div onClick = { ( ) => setIsAdding ( true ) } >
220+ < AddPlanButton />
221+ </ div >
222+ ) }
223+ </ div >
224+
211225 < section className = "space-y-6" >
212226 { isLoading ? (
213227 < p > 플랜을 불러오는 중...</ p >
@@ -240,20 +254,6 @@ const Page = () => {
240254 onPageChange = { setCurrentPage }
241255 />
242256 ) }
243-
244- { /* 하단 추가 버튼 or 인라인 폼 */ }
245- < div className = "mt-6" >
246- { isAdding ? (
247- < InlineAddPlanForm
248- onSave = { handleSavePlan }
249- onCancel = { handleCancelAdd }
250- />
251- ) : (
252- < div onClick = { ( ) => setIsAdding ( true ) } >
253- < AddPlanButton />
254- </ div >
255- ) }
256- </ div >
257257 </ div >
258258 ) ;
259259} ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default function PlanSection({
4343 onDeletePlan,
4444 onUpdatePlan,
4545} : PlanSectionProps ) {
46- const [ isOpen , setIsOpen ] = useState ( true ) ;
46+ const [ isOpen , setIsOpen ] = useState ( false ) ;
4747 const [ tasks , setTasks ] = useState < PlanItem [ ] > ( [ ] ) ;
4848 const [ isTasksLoading , setIsTasksLoading ] = useState ( true ) ;
4949 const [ isAddingTask , setIsAddingTask ] = useState ( false ) ;
You can’t perform that action at this time.
0 commit comments