diff --git a/src/assets/icons/basic-profile.svg b/src/assets/icons/basic-profile.svg deleted file mode 100644 index 6535bfb4..00000000 --- a/src/assets/icons/basic-profile.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/assets/icons/index.ts b/src/assets/icons/index.ts index 8463ac85..6a4efe45 100644 --- a/src/assets/icons/index.ts +++ b/src/assets/icons/index.ts @@ -1,6 +1,5 @@ export { default as CloseInTheCircleIcon } from './close-in-the-circle.svg?react' export { default as MenuIcon } from './menu.svg?react' -export { default as BasicProfileIcon } from './basic-profile.svg?react' export { default as EyeOffIcon } from './eye-off.svg?react' export { default as EyeOnIcon } from './eye-on.svg?react' export { default as StarIcon } from './star.svg?react' diff --git a/src/assets/images/basic-profile.png b/src/assets/images/basic-profile.png new file mode 100644 index 00000000..771a30ee Binary files /dev/null and b/src/assets/images/basic-profile.png differ diff --git a/src/assets/images/index.ts b/src/assets/images/index.ts index d4a5551f..362b1eff 100644 --- a/src/assets/images/index.ts +++ b/src/assets/images/index.ts @@ -6,3 +6,4 @@ export { default as errorLightImg } from './error-white.png' export { default as sansDark } from './sans-dark.png' export { default as sansLight } from './sans-light.png' export { default as rangerCleanHead } from './clean-head.png' +export { default as BasicProfile } from './basic-profile.png' diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 093be99f..ce6b31cf 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -6,11 +6,10 @@ import { LogoRowIcon, LogoShortIcon, ArrowLeftIcon, - BasicProfileIcon, SunIcon, MoonIcon, } from '@/assets/icons' -import { rangerCleanHead } from '@/assets/images' +import { rangerCleanHead, BasicProfile } from '@/assets/images' import { Modal } from '..' import Dropdown from '../Dropdown' @@ -81,7 +80,7 @@ const Header = memo(({ handleGoBack }: HeaderProps) => { my ) : ( - + )} diff --git a/src/components/Profile/index.tsx b/src/components/Profile/index.tsx index 2dbda922..f620815e 100644 --- a/src/components/Profile/index.tsx +++ b/src/components/Profile/index.tsx @@ -1,4 +1,4 @@ -import { BasicProfileIcon } from '@/assets/icons' +import { BasicProfile } from '@/assets/images' interface ProfileProps { image?: string | JSX.Element @@ -6,13 +6,7 @@ interface ProfileProps { className?: string } -const Profile = ({ - image = ( - - ), - name, - className, -}: ProfileProps) => { +const Profile = ({ image = BasicProfile, name, className }: ProfileProps) => { return (
diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx index c5319323..ce05c9fa 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx @@ -1,7 +1,7 @@ import { nanoid } from 'nanoid' import { useState } from 'react' import { StarRatingList } from '@/components' -import { BasicProfileIcon } from '@/assets/icons' +import { BasicProfile } from '@/assets/images' import { QUESTION_TYPE } from '../../constants' import RenderRefinedSubjective from './RenderRefinedSubjective' @@ -29,7 +29,10 @@ interface Answer { const renderStarRating = (value: Answer) => (

- +

{value.userName}

@@ -51,7 +54,10 @@ const renderHexaStat = (value: Answer, answers: Answer[]) => {
{filteredAnswers.map((value) => (
- +

{value?.userName}

{value?.value}

@@ -64,7 +70,10 @@ const renderHexaStat = (value: Answer, answers: Answer[]) => { const renderDefault = (value: Answer) => ( <>

- +

{value?.userName}

diff --git a/src/pages/CreatedReviewManagePage/components/ProfileGroup/index.tsx b/src/pages/CreatedReviewManagePage/components/ProfileGroup/index.tsx index 214afb7c..08d306dc 100644 --- a/src/pages/CreatedReviewManagePage/components/ProfileGroup/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/ProfileGroup/index.tsx @@ -1,4 +1,4 @@ -import { BasicProfileIcon } from '@/assets/icons' +import { BasicProfile } from '@/assets/images' interface ProfileGroupProps { name: string @@ -9,7 +9,10 @@ interface ProfileGroupProps { const ProfileGroup = ({ name, responserSize, type }: ProfileGroupProps) => { return (

- +
{type === 'receiver' ? ( diff --git a/src/pages/CreatedReviewManagePage/components/SelectResponseUser/index.tsx b/src/pages/CreatedReviewManagePage/components/SelectResponseUser/index.tsx index 95eb18fe..e319a7c9 100644 --- a/src/pages/CreatedReviewManagePage/components/SelectResponseUser/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/SelectResponseUser/index.tsx @@ -22,7 +22,7 @@ const SelectResponseUser = ({ className={`flex h-fit shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md border px-2 py-1.5 ${ name === selectedName - ? 'border-black border-sub-green bg-main-yellow dark:border-white dark:bg-main-red-300' + ? 'border-black bg-main-yellow dark:border-white dark:bg-main-red-300' : 'border-gray-100 bg-white dark:border-gray-300 dark:bg-main-red-200' }`} > diff --git a/src/pages/MyPage/index.tsx b/src/pages/MyPage/index.tsx index 004e6b57..e5e7ea3a 100644 --- a/src/pages/MyPage/index.tsx +++ b/src/pages/MyPage/index.tsx @@ -2,12 +2,8 @@ import { ChangeEvent, useRef } from 'react' import { useNameCheck, usePasswordCheck, useToast } from '@/hooks' import { Header, Input, Modal } from '@/components' import { useEditImage, useUser } from '@/apis/hooks' -import { - BasicProfileIcon, - CheckIcon, - EditIcon, - ImageIcon, -} from '@/assets/icons' +import { CheckIcon, EditIcon, ImageIcon } from '@/assets/icons' +import { BasicProfile } from '@/assets/images' import { useEditNameCheck, useEditPasswordCheck } from './hooks' const MyPage = () => { @@ -99,7 +95,7 @@ const MyPage = () => { className="h-full w-full" /> ) : ( - + )}
diff --git a/src/pages/ReviewReplyPage/components/ReviewReplyStart/ReviewSelect.tsx b/src/pages/ReviewReplyPage/components/ReviewReplyStart/ReviewSelect.tsx index 127bbe2c..d32eb435 100644 --- a/src/pages/ReviewReplyPage/components/ReviewReplyStart/ReviewSelect.tsx +++ b/src/pages/ReviewReplyPage/components/ReviewReplyStart/ReviewSelect.tsx @@ -149,7 +149,7 @@ const ReceiverSelect = ({ setReviewStep, questions }: ReceiverSelectProps) => { setName('') }} > - + )) ) : (