Skip to content

Commit

Permalink
Fix: PostDetailModal 빌드 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wldlsgur committed Jun 5, 2024
1 parent 241ce31 commit 717de8a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Pages/DetailPage/PostDetailModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { useReadMessage } from '@/Hooks/Api/Message';
import Alert from '@/Components/Common/Alert';
import NON_AUTH_USER from '@/Constants/nonAuthUser';
import { NotificationTypeList } from '@/Types/Request';
import { useChannelStore } from '@/Stores';
import PostDetailSkeleton from './PostDetailSkeleton';
import PostDotModal from './PostDotModal';
import {
Expand Down Expand Up @@ -74,6 +75,7 @@ const PostDetailModal = ({
const { user: authUser } = useAuthUserStore();
const { setReceiver, setIsClickedUserCard } = useMessageReceiver();
const { mutateReadMessage } = useReadMessage();
const { currentChannelId } = useChannelStore();

// 디바이스 크기 조절 감지 함수
const [deviceWidth, setDeviceWidth] = useState(window.innerWidth);
Expand Down Expand Up @@ -121,10 +123,10 @@ const PostDetailModal = ({

const { commentById } = useCreateComment();
const { deleteCommentById } = useDeleteComment();
const { followByUserId } = useFollowByUserId();
const { unfollowByUserId } = useUnfollowByUserId();
const { likeById } = useLikeById();
const { disLikeById } = useDisLikeById();
const { followByUserId } = useFollowByUserId(currentChannelId);
const { unfollowByUserId } = useUnfollowByUserId(currentChannelId);
const { likeById } = useLikeById(currentChannelId);
const { disLikeById } = useDisLikeById(currentChannelId);
const { createNotification } = useCreateNotification();

/**
Expand Down

0 comments on commit 717de8a

Please sign in to comment.