diff --git a/packages/web-domains/src/about-me/features/components/Profile/Profile.tsx b/packages/web-domains/src/about-me/features/components/Profile/Profile.tsx index 9f23c2f2..384aa08d 100644 --- a/packages/web-domains/src/about-me/features/components/Profile/Profile.tsx +++ b/packages/web-domains/src/about-me/features/components/Profile/Profile.tsx @@ -2,9 +2,10 @@ import { Badge, Txt } from '@sambad/sds/components'; import { borderRadiusVariants, colors } from '@sambad/sds/theme'; -import Image from 'next/image'; import { Fragment } from 'react'; +import { Avatar } from '@/home/common/components/Avatar/Avatar'; + import { badgeContainerCss, nameCss } from './styles'; import { generateAge, generateGender } from './utils'; @@ -31,8 +32,8 @@ export const Profile = (props: ProfileProps) => { return ( {imageUrl != null && ( - {`${name}_프로필_이미지`}
- {name} +
{name} diff --git a/packages/web-domains/src/relay-question/features/select-relay-question/components/QuestionerDetail/QuestionerDetail.tsx b/packages/web-domains/src/relay-question/features/select-relay-question/components/QuestionerDetail/QuestionerDetail.tsx index dc62299a..80a9101e 100644 --- a/packages/web-domains/src/relay-question/features/select-relay-question/components/QuestionerDetail/QuestionerDetail.tsx +++ b/packages/web-domains/src/relay-question/features/select-relay-question/components/QuestionerDetail/QuestionerDetail.tsx @@ -1,7 +1,8 @@ import { css } from '@emotion/react'; import { Button, Txt } from '@sambad/sds/components'; import { colors, size } from '@sambad/sds/theme'; -import Image from 'next/image'; + +import { Avatar } from '@/home/common/components/Avatar/Avatar'; import { RelayRePickQuestioner } from '../../../../assets/RelayRePickQuestioner'; import { RePick } from '../RePick/RePick'; @@ -28,7 +29,7 @@ export const QuestionerDetail = ({ return (
- {name} +
{name} diff --git a/packages/web-domains/src/relay-question/features/start-relay-question/components/Profile/Profile.tsx b/packages/web-domains/src/relay-question/features/start-relay-question/components/Profile/Profile.tsx index 24f0617b..fc7e54eb 100644 --- a/packages/web-domains/src/relay-question/features/start-relay-question/components/Profile/Profile.tsx +++ b/packages/web-domains/src/relay-question/features/start-relay-question/components/Profile/Profile.tsx @@ -1,6 +1,7 @@ import { Txt } from '@sambad/sds/components'; import { colors } from '@sambad/sds/theme'; -import Image from 'next/image'; + +import { Avatar } from '@/home/common/components/Avatar/Avatar'; import { RelayStartDecoCircle } from '../../../../assets/RelayStartDecoCircle'; import { RelayStartDecoStar } from '../../../../assets/RelayStartDecoStar'; @@ -25,7 +26,7 @@ const convertProfileImage = (profileImageUrl: string) => { return (
- profile image +
); }; diff --git a/packages/web-domains/src/result/features/components/SelectedDataCard/Comment.tsx b/packages/web-domains/src/result/features/components/SelectedDataCard/Comment.tsx index ea46359a..5ff8d3b9 100644 --- a/packages/web-domains/src/result/features/components/SelectedDataCard/Comment.tsx +++ b/packages/web-domains/src/result/features/components/SelectedDataCard/Comment.tsx @@ -2,7 +2,8 @@ import { Txt } from '@sambad/sds/components'; import { colors } from '@sambad/sds/theme'; -import Image from 'next/image'; + +import { Avatar } from '@/home/common/components/Avatar/Avatar'; import { commentAttribute } from './constants'; import { commentCss, commentProfileCss } from './styles'; @@ -22,7 +23,7 @@ export const Comment = (props: CommentProps) => { {comment}
- {`${name}_프로필_이미지`} + {name} diff --git a/packages/web-domains/src/result/features/components/SelectedDataCard/Profile.tsx b/packages/web-domains/src/result/features/components/SelectedDataCard/Profile.tsx index a51005af..01755534 100644 --- a/packages/web-domains/src/result/features/components/SelectedDataCard/Profile.tsx +++ b/packages/web-domains/src/result/features/components/SelectedDataCard/Profile.tsx @@ -1,9 +1,10 @@ 'use client'; import { Txt, TxtProps } from '@sambad/sds/components'; -import Image from 'next/image'; import { HTMLAttributes } from 'react'; +import { Avatar } from '@/home/common/components/Avatar/Avatar'; + import { profileCss } from './styles'; export interface ProfileProps extends HTMLAttributes { @@ -18,7 +19,7 @@ export const Profile = (props: ProfileProps) => { return (
- {imgUrl && {`${name}_프로필_이미지`}} + {imgUrl && } {name && {name}}
); diff --git a/packages/web-domains/src/result/features/list/components/MemberListItem/MemberListItem.tsx b/packages/web-domains/src/result/features/list/components/MemberListItem/MemberListItem.tsx index b3ad90e6..96614134 100644 --- a/packages/web-domains/src/result/features/list/components/MemberListItem/MemberListItem.tsx +++ b/packages/web-domains/src/result/features/list/components/MemberListItem/MemberListItem.tsx @@ -1,7 +1,8 @@ import { Txt } from '@sambad/sds/components'; -import Image from 'next/image'; import { HTMLAttributes } from 'react'; +import { Avatar } from '@/home/common/components/Avatar/Avatar'; + import { containerCss, ownerEmojiCss } from './styles'; interface MemberListItemProps extends HTMLAttributes { @@ -15,7 +16,7 @@ export const MemberListItem = (props: MemberListItemProps) => { return (
- {imgUrl && {`${name}_프로필_이미지`}} + {imgUrl && } {name} {isOwner && ( diff --git a/packages/web-domains/src/result/features/main/components/SelectedDataCard/Comment.tsx b/packages/web-domains/src/result/features/main/components/SelectedDataCard/Comment.tsx index ea46359a..5ff8d3b9 100644 --- a/packages/web-domains/src/result/features/main/components/SelectedDataCard/Comment.tsx +++ b/packages/web-domains/src/result/features/main/components/SelectedDataCard/Comment.tsx @@ -2,7 +2,8 @@ import { Txt } from '@sambad/sds/components'; import { colors } from '@sambad/sds/theme'; -import Image from 'next/image'; + +import { Avatar } from '@/home/common/components/Avatar/Avatar'; import { commentAttribute } from './constants'; import { commentCss, commentProfileCss } from './styles'; @@ -22,7 +23,7 @@ export const Comment = (props: CommentProps) => { {comment}
- {`${name}_프로필_이미지`} + {name} diff --git a/packages/web-domains/src/result/features/main/components/SelectedDataCard/Profile.tsx b/packages/web-domains/src/result/features/main/components/SelectedDataCard/Profile.tsx index c8b43c0c..d31a8baf 100644 --- a/packages/web-domains/src/result/features/main/components/SelectedDataCard/Profile.tsx +++ b/packages/web-domains/src/result/features/main/components/SelectedDataCard/Profile.tsx @@ -2,9 +2,10 @@ import { Txt, TxtProps } from '@sambad/sds/components'; import { borderRadiusVariants } from '@sds/theme'; -import Image from 'next/image'; import { HTMLAttributes } from 'react'; +import { Avatar } from '@/home/common/components/Avatar/Avatar'; + import { profileCss } from './styles'; export interface ProfileProps extends HTMLAttributes { @@ -20,8 +21,8 @@ export const Profile = (props: ProfileProps) => { return (
{imgUrl && ( -