diff --git a/src/components/pages/chat/chat-list/index.tsx b/src/components/pages/chat/chat-list/index.tsx index cb929d97..81ac268e 100644 --- a/src/components/pages/chat/chat-list/index.tsx +++ b/src/components/pages/chat/chat-list/index.tsx @@ -3,9 +3,7 @@ import { useRouter } from 'next/navigation'; import { useMemo } from 'react'; -import { DEFAULT_PROFILE_IMAGE } from 'constants/default-images'; - -import { ImageWithFallback } from '@/components/ui'; +import { ProfileImage } from '@/components/shared'; import { useChatListSocket, useGetChatList } from '@/hooks/use-chat'; import { cn } from '@/lib/utils'; @@ -49,15 +47,7 @@ export const ChatList = ({ userId, accessToken }: IProps) => { onClick={() => handleClick(chat.chatRoomId)} > {/* 프로필 이미지 - 이미지 수정 필요💥💥*/} -
- -
+ {/* 텍스트 영역 */}
diff --git a/src/components/pages/chat/chat-other-chat/index.tsx b/src/components/pages/chat/chat-other-chat/index.tsx index 39630e81..82cbf4ca 100644 --- a/src/components/pages/chat/chat-other-chat/index.tsx +++ b/src/components/pages/chat/chat-other-chat/index.tsx @@ -1,4 +1,4 @@ -import { ImageWithFallback } from '@/components/ui'; +import { ProfileImage } from '@/components/shared'; import { formatKoreanTime } from '@/lib/formatDateTime'; import { ChatMessage } from '@/types/service/chat'; @@ -13,13 +13,7 @@ export const OtherChat = ({ item }: IProps) => { const time = timestamp ?? createdAt; return (
- +
{senderName} diff --git a/src/components/pages/chat/chat-user-list/index.tsx b/src/components/pages/chat/chat-user-list/index.tsx index 6cab7ee5..3974f225 100644 --- a/src/components/pages/chat/chat-user-list/index.tsx +++ b/src/components/pages/chat/chat-user-list/index.tsx @@ -1,12 +1,9 @@ 'use client'; -import Image from 'next/image'; - import { useState } from 'react'; -import { DEFAULT_PROFILE_IMAGE } from 'constants/default-images'; - import { Icon } from '@/components/icon'; +import { ProfileImage } from '@/components/shared'; import { useModal } from '@/components/ui'; import { useGetParticipants } from '@/hooks/use-chat'; @@ -65,13 +62,7 @@ export const UserList = ({ onClose, roomId, roomType, userId }: UserListProps) =
- profile +
diff --git a/src/components/pages/group/group-descriptions/description-sections/description-profile/index.tsx b/src/components/pages/group/group-descriptions/description-sections/description-profile/index.tsx index 4cc36c80..8466ed7b 100644 --- a/src/components/pages/group/group-descriptions/description-sections/description-profile/index.tsx +++ b/src/components/pages/group/group-descriptions/description-sections/description-profile/index.tsx @@ -1,6 +1,6 @@ import Link from 'next/link'; -import { ImageWithFallback } from '@/components/ui'; +import { ProfileImage } from '@/components/shared'; import { PendingBadge } from '@/components/ui'; import { GetGroupDetailsResponse } from '@/types/service/group'; @@ -24,14 +24,7 @@ export const DescriptionProfile = ({ return (
- - +

{nickName}

{profileMessage &&

{profileMessage}

} diff --git a/src/components/pages/group/group-members/index.tsx b/src/components/pages/group/group-members/index.tsx index c4e7e695..683bc771 100644 --- a/src/components/pages/group/group-members/index.tsx +++ b/src/components/pages/group/group-members/index.tsx @@ -8,8 +8,8 @@ import clsx from 'clsx'; import { Icon } from '@/components/icon'; import { GroupModal } from '@/components/pages/group/group-modal'; -import { AnimateDynamicHeight } from '@/components/shared'; -import { Button, ImageWithFallback } from '@/components/ui'; +import { AnimateDynamicHeight, ProfileImage } from '@/components/shared'; +import { Button } from '@/components/ui'; import { useModal } from '@/components/ui'; import { GetGroupDetailsResponse, KickGroupMemberParams } from '@/types/service/group'; @@ -49,13 +49,7 @@ export const GroupMembers = ({ members, isHost }: Props) => {
- + {isHost && idx !== 0 && (