From c61d5d14d8942806e187093f7844f1bc58d96a04 Mon Sep 17 00:00:00 2001 From: hyoribogo <97094709+hyoribogo@users.noreply.github.com> Date: Thu, 30 Nov 2023 02:12:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header/index.tsx | 5 ++--- .../components/AnswerGroup/index.tsx | 17 +++++++++++++---- .../components/ProfileGroup/index.tsx | 7 +++++-- src/pages/MyPage/index.tsx | 10 +++------- 4 files changed, 23 insertions(+), 16 deletions(-) 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/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx index c06ab12e..046eff11 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/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" /> ) : ( - + )}