Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Aug 12, 2024
1 parent 01ba4ef commit 5151f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -31,7 +31,7 @@ function ContentHeartBar({ feedId, likeUsers, likeCnt, comments, refetch }: Cont
const typeToast = useTypeToast();
const { data: session } = useSession();
const { data: userInfo } = useUserInfoQuery();
const isGuest = session ? session.user.name : undefined;
const isGuest = session ? session.user.name === "guest" : undefined;
const router = useRouter();

const searchParams = useSearchParams();
Expand Down
5 changes: 2 additions & 3 deletions pageTemplates/square/SecretSquare/SquareItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Flex, Image, Text } from "@chakra-ui/react";
import dayjs from "dayjs";
import Link from "next/link";
import { useSession } from "next-auth/react";
import Link from "next/link";
import styled from "styled-components";

import { useTypeToast } from "../../../hooks/custom/CustomToast";
Expand All @@ -27,7 +27,6 @@ export default function SquareItem({ item }: SquareItemProps) {
const { data: session } = useSession();
const typeToast = useTypeToast();
const isGuest = session?.user.name === "guest";
console.log(item);

const onClick = (e) => {
if (isGuest) {
Expand Down Expand Up @@ -75,7 +74,7 @@ export default function SquareItem({ item }: SquareItemProps) {
{item.content}
</Box>
{item.thumbnail && (
<Box position="relative" overflow="visible" my="8px">
<Box position="relative" overflow="visible" mb="8px">
<Box
w="64px"
aspectRatio="1/1"
Expand Down

0 comments on commit 5151f3e

Please sign in to comment.