Skip to content

Commit

Permalink
loading
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Aug 12, 2024
1 parent c22f03a commit 1cae43e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/molecules/ContentHeartBar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Button, Flex } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useRouter, useSearchParams } from "next/navigation";
import { useSession } from "next-auth/react";
import { useRouter, useSearchParams } from "next/navigation";
import { Fragment, useEffect, useState } from "react";

import { useCommentMutation, useSubCommentMutation } from "../../hooks/common/mutations";
Expand Down
7 changes: 5 additions & 2 deletions pages/square/secret/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ import {
useDisclosure,
VStack,
} from "@chakra-ui/react";
import { useSession } from "next-auth/react";
import Image from "next/image";
import { useRouter } from "next/router";
import { useSession } from "next-auth/react";
import { useEffect, useState } from "react";

import AlertModal from "../../../components/AlertModal";
import { Badge } from "../../../components/atoms/badges/Badges";
import Divider from "../../../components/atoms/Divider";
import KakaoShareBtn from "../../../components/atoms/Icons/KakaoShareBtn";
import { MainLoadingAbsolute } from "../../../components/atoms/loaders/MainLoading";
import Header from "../../../components/layouts/Header";
import Slide from "../../../components/layouts/PageSlide";
import OrganizerBar from "../../../components/molecules/OrganizerBar";
Expand Down Expand Up @@ -144,7 +145,7 @@ function SecretSquareDetailPage() {
</Header>
<>
<Slide>
{squareDetail && (
{squareDetail ? (
<>
<Flex px={4} py={4} direction="column" gap={2} as="section" bg="white">
<Box>
Expand Down Expand Up @@ -372,6 +373,8 @@ function SecretSquareDetailPage() {
<Divider />
{/* comments section */}
</>
) : (
<MainLoadingAbsolute />
)}
</Slide>
{squareDetail && (
Expand Down

0 comments on commit 1cae43e

Please sign in to comment.