From 41de799e089637d6126224beb7a1c992b4598bb9 Mon Sep 17 00:00:00 2001 From: LSJ Date: Tue, 13 Aug 2024 05:08:03 +0900 Subject: [PATCH] perf: loading --- pages/square/secret/[id].tsx | 124 +++++++++++++++++++---------------- 1 file changed, 68 insertions(+), 56 deletions(-) diff --git a/pages/square/secret/[id].tsx b/pages/square/secret/[id].tsx index c57485148..14d4cd76f 100644 --- a/pages/square/secret/[id].tsx +++ b/pages/square/secret/[id].tsx @@ -145,61 +145,76 @@ function SecretSquareDetailPage() { <> - {squareDetail ? ( - <> - - - - -
- - {squareDetail.isMySquare && ( - <> - - - - - - - - - 삭제 - - - - - {isAlertOpen && ( - - )} - - )} - -
-
+ + + {squareDetail && ( + <> + + + +
+ + {squareDetail.isMySquare && ( + <> + + + + + + + + + 삭제 + + + + + {isAlertOpen && ( + + )} + + )} + +
+ + )} +
+ +
+ {squareDetail ? ( + <> {squareDetail.title} {squareDetail.content} -
- + + ) : ( + + )} +
+ {squareDetail && ( + <> {squareDetail.type === "poll" && ( {squareDetail.likeCount}
- - - {/* comments section */} - - ) : ( - - )} + + )} + + {squareDetail && }
{squareDetail && (