Skip to content

Commit

Permalink
fix: 빌드 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wokbjso committed Sep 13, 2024
1 parent ee5a09f commit b8973d6
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import { useMemberFollowingState } from '@/hooks';
import { css, cva } from '@/styled-system/css';
import { convertTimeToElapsedTime } from '@/utils';

import { useReadNotification } from '../../apis/use-read-notification';
import { layoutStyles, textStyles } from '../../styles';
import { FollowNotificationProps } from '../../types';

export function FollowNotification({
memberId,
notificationId,
type,
hasRead,
profileImageUrl,
Expand All @@ -22,23 +20,14 @@ export function FollowNotification({
}: FollowNotificationProps) {
const { useMemberIsFollowing, toggleFollow } = useMemberFollowingState();
const { isFollowing } = useMemberIsFollowing(memberId);
const { mutate: readNotification } = useReadNotification();

const handleListElementClick = () => {
readNotification({ notificationId, type });
};

const handleFollowButtonClick = () => {
void toggleFollow(memberId);
};

return (
<li className={css(layoutStyles.total.raw({ hasRead }))}>
<Link
href={`/profile/${memberId}`}
onClick={handleListElementClick}
className={css({ display: 'flex' })}
>
<Link href={`/profile/${memberId}`} className={css({ display: 'flex' })}>
<div className={profileImageStyles}>
<ProfileImage
alt="프로필 사진"
Expand Down

0 comments on commit b8973d6

Please sign in to comment.