Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/app/dashboard/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ export default function DashboardID() {
})
}

if (isLoading) return <p>loading...</p>
if (error) return <p>error...{error.message}</p>
if (isLoading) return <div className="BG-gray size-full"></div> // μŠ€μΌˆλ ˆν†€ 적용???⭐️⭐️

return (
<>
<div className="select-none">
<div className="h-screen select-none">
<div
className="flex min-h-screen mobile:flex-col tablet:flex-col"
onTouchStart={handleTouchStart}
Expand All @@ -155,7 +155,7 @@ export default function DashboardID() {
{columns?.map((column) => (
<Column key={column.id} column={column} dashboardId={dashboardId} />
))}{' '}
<div className="BG-gray Border-column p-20 mobile:w-308 mobile:border-t-2 tablet:w-584 tablet:border-t-2">
<div className="BG-gray Border-column p-20 mobile:h-full mobile:w-308 mobile:border-t-2 tablet:h-full tablet:w-584 tablet:border-t-2">
<button
className="BG-white Border-btn m flex justify-center gap-12 whitespace-nowrap rounded-8 px-85 pb-20 pt-24 text-18 font-bold mobile:flex mobile:w-full mobile:justify-center mobile:px-50 mobile:py-20 mobile:text-16 tablet:flex tablet:w-full tablet:items-center"
onClick={handleCreateColumn}
Expand Down
9 changes: 6 additions & 3 deletions src/app/features/dashboard_Id/Column/Column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export default function Column({
})
}

if (isLoading) return <p>loading...</p> // μŠ€μΌˆλ ˆν†€ 적용???⭐️
if (isLoading)
return (
<div className="BG-gray Border-column w-354 shrink-0 p-20 pt-103 mobile:w-308 tablet:w-584">
<div className="BG-white size-full"></div>
</div>
) // μŠ€μΌˆλ ˆν†€ 적용???⭐️
if (isError) return toast.error('ν•  일 뢈러였기 μ‹€νŒ¨')

return (
Expand Down Expand Up @@ -132,14 +137,12 @@ export default function Column({
/>
</CreateCardModal>
)}

{/* λ¬΄ν•œ 슀크둀 κ΄€λ ¨ */}
{isFetchingNextPage && (
<p className="text-center text-sm text-gray-400">
μΉ΄λ“œλ₯Ό λΆˆλŸ¬μ˜€λŠ” 쀑...
</p>
)}

{!hasNextPage && (
<p className="py-4 text-center text-sm text-gray-300">
λͺ¨λ“  μΉ΄λ“œλ₯Ό λΆˆλŸ¬μ™”μŠ΅λ‹ˆλ‹€
Expand Down
Loading