From 1531d194e61f3b316707d8334427f56a3595d204 Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Sun, 22 Sep 2024 02:31:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20DefaultImage=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/defaultImage.svg | 9 +++++++++ src/app/board/[boardId]/page.tsx | 5 +++-- src/app/page.tsx | 3 ++- src/components/ootd/CommentSection.tsx | 15 +++++---------- src/components/ootd/OotdDetail.tsx | 3 ++- src/components/pages/home/recentPost.tsx | 5 +++-- src/components/pages/ootd/RecentOotdPost.tsx | 3 ++- src/components/profile/FollowList.tsx | 3 ++- src/components/profile/MyBookmark.tsx | 3 ++- src/components/profile/MyMobileProfile.tsx | 3 ++- src/components/profile/MyOotd.tsx | 3 ++- src/components/profile/UserInformation.tsx | 3 ++- src/components/shared/header/Header.tsx | 4 ++-- src/components/user/UserMobileProfile.tsx | 3 ++- src/components/user/UserOotd.tsx | 3 ++- src/components/user/UserProfile.tsx | 3 ++- 16 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 public/defaultImage.svg diff --git a/public/defaultImage.svg b/public/defaultImage.svg new file mode 100644 index 00000000..98e645ed --- /dev/null +++ b/public/defaultImage.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/app/board/[boardId]/page.tsx b/src/app/board/[boardId]/page.tsx index e964b694..b6d62920 100644 --- a/src/app/board/[boardId]/page.tsx +++ b/src/app/board/[boardId]/page.tsx @@ -32,6 +32,7 @@ import { useFollowingStore } from "@/store/useFollowingStore"; import { doFollow, unfollow } from "@/services/follow"; import FollowButton from "@/components/followControl/followButton"; import { colorTicket } from "@/types/board"; +import DefaultImage from '../../../../public/defaultImage.svg'; export default function BoardPage({ params }: { params: { boardId: number } }) { const accessToken = Cookies.get("accessToken"); @@ -434,7 +435,7 @@ export default function BoardPage({ params }: { params: { boardId: number } }) {
- +
{posts.member.nickName} {formattedDateTime} diff --git a/src/components/ootd/CommentSection.tsx b/src/components/ootd/CommentSection.tsx index bdb5b52c..33307ec9 100644 --- a/src/components/ootd/CommentSection.tsx +++ b/src/components/ootd/CommentSection.tsx @@ -15,6 +15,7 @@ import UpIcon from '../../../public/icon_up.svg'; import { Comment } from '@/types/ootd'; import { useRouter } from "next/navigation"; import Cookies from "js-cookie"; +import DefaultImage from '../../../public/defaultImage.svg'; interface CommentSectionProps { @@ -260,17 +261,15 @@ const renderComments = (comments: Comment[], depth = 0) => { {/* 댓글 표시 */}
- {comment.member?.profileUrl && (
사용자 프로필
- )}
{comment.member?.nickName}
@@ -291,17 +290,15 @@ const renderComments = (comments: Comment[], depth = 0) => { {replyTo === comment.id && (
- {userInfo?.profileImageUrl && (
사용자 프로필
- )}
{userInfo?.nickName}
@@ -357,7 +354,7 @@ const renderComments = (comments: Comment[], depth = 0) => {
프로필 이미지 {
- {userInfo?.profileImageUrl && ( <>
사용자
- )}
{userInfo?.nickName}
diff --git a/src/components/ootd/OotdDetail.tsx b/src/components/ootd/OotdDetail.tsx index 4eb8a3e8..a5a71a55 100644 --- a/src/components/ootd/OotdDetail.tsx +++ b/src/components/ootd/OotdDetail.tsx @@ -24,6 +24,7 @@ import BookmarkIcon from "../../../public/icon_bookmark.svg"; import BookmarkedIcon from "../../../public/bookmark-fill.svg"; import { addBookmark, deleteBookmark, fetchIsBookmarked } from "@/services/bookmark/bookmark"; import WeatherIcon from "../../../public/WeatherIcon.svg"; +import DefaultImage from "../../../public/defaultImage.svg"; interface OotdDetailProps { id: number; @@ -205,7 +206,7 @@ const OotdDetail: React.FC = ({ id }) => {
사용자 프로필
- + {posts.member.nickName} {/* {formattedDate} */}
@@ -223,7 +224,7 @@ function RecentPost({ allPosts, setAllPosts, boardData, userInfo, boardRefetch,
- + {posts.member.nickName} {formattedDate}
diff --git a/src/components/pages/ootd/RecentOotdPost.tsx b/src/components/pages/ootd/RecentOotdPost.tsx index cfaafff8..db390187 100644 --- a/src/components/pages/ootd/RecentOotdPost.tsx +++ b/src/components/pages/ootd/RecentOotdPost.tsx @@ -14,6 +14,7 @@ import { fetchLikedPosts } from '@/services/ootd.ts/ootdComments'; import HeartIcon from '../../../../public/icon_heart.svg'; import CustomSelect from './CustomSelect'; import { useUserStore } from '@/store/useUserStore'; +import DefaultImage from '../../../../public/defaultImage.svg'; const PAGE_SIZE = 12; @@ -209,7 +210,7 @@ const RecentOotdPost: React.FC = () => {
Profile
Profile diff --git a/src/components/profile/MyBookmark.tsx b/src/components/profile/MyBookmark.tsx index a0987301..576df845 100644 --- a/src/components/profile/MyBookmark.tsx +++ b/src/components/profile/MyBookmark.tsx @@ -8,6 +8,7 @@ import HeartIcon from '../../../public/icon_heart.svg'; import { fetchLikedPosts } from "@/services/ootd.ts/ootdComments"; import Cookies from 'js-cookie'; import { useRouter } from "next/navigation"; +import DefaultImage from '../../../public/defaultImage.svg'; const PAGE_SIZE = 9; @@ -112,7 +113,7 @@ const MyBookmark = () => { )}
User Profile diff --git a/src/components/profile/MyMobileProfile.tsx b/src/components/profile/MyMobileProfile.tsx index a18a956f..a094df56 100644 --- a/src/components/profile/MyMobileProfile.tsx +++ b/src/components/profile/MyMobileProfile.tsx @@ -5,6 +5,7 @@ import { MemberInfo } from "@/services/auth"; import Cookies from "js-cookie"; import { useRouter } from "next/navigation"; import { doFollow } from "@/services/follow"; +import DefaultImage from '../../../public/defaultImage.svg'; const TABS = { ALL: "ALL", @@ -54,7 +55,7 @@ const MyMobileProfile: React.FC<{ setActiveTab: (tab: string) => void }> = ({

{userData?.blogName}

Profile = ({ userInfo }) => { )}
User Profile diff --git a/src/components/profile/UserInformation.tsx b/src/components/profile/UserInformation.tsx index 1397b90f..a6d7a43d 100644 --- a/src/components/profile/UserInformation.tsx +++ b/src/components/profile/UserInformation.tsx @@ -5,6 +5,7 @@ import { MemberInfo } from "@/services/auth"; import Cookies from "js-cookie"; import { useRouter } from "next/navigation"; import { doFollow } from "@/services/follow"; +import DefaultImage from "../../../public/defaultImage.svg"; const TABS = { ALL: "ALL", @@ -53,7 +54,7 @@ const UserInformation: React.FC<{ setActiveTab: (tab: string) => void }> = ({
Profile { > profile = ({

{blogName}

Profile = ({ memberId }) => { )}
User Profile diff --git a/src/components/user/UserProfile.tsx b/src/components/user/UserProfile.tsx index 1a855a35..d00564d0 100644 --- a/src/components/user/UserProfile.tsx +++ b/src/components/user/UserProfile.tsx @@ -5,6 +5,7 @@ import { fetchUserProfile } from "@/services/ootd.ts/ootdGet"; import { UserProfileResponse } from "@/types/ootd"; import { useUserStore } from "@/store/useUserStore"; import FollowButton from "../followControl/followButton"; +import DefaultImage from '../../../public/defaultImage.svg'; const TABS = { FOLLOWER: "FOLLOWER", @@ -54,7 +55,7 @@ const UserProfile: React.FC = ({