From b2a779423578486a9331224995f7d697fececfb0 Mon Sep 17 00:00:00 2001 From: hyoribogo <97094709+hyoribogo@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:53:14 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=83=9D=EC=84=B1=ED=95=9C=20?= =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EA=B4=80=EB=A6=AC=20=EB=94=94=EC=9E=90?= =?UTF-8?q?=EC=9D=B8=20=EC=88=98=EC=A0=95=20(#113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 생성한 리뷰 관리 페이지 상세에서 scrolltop적용 * refactor: 질문 크기 수정 * refactor: 헥사스텟 UI 수정 * style: 중복 아이콘 제거 * style: 폰트 사이즈 더 크게 변경 * style: 아이콘 에셋 수정 * refactor: 리뷰 정보 컴포넌트로 변경 * style: hover 이벤트 임시 제거 * style: drawer 레이아웃 스타일 변경 --------- Co-authored-by: Kim0426 <706shin1728@naver.com> --- src/assets/icons/index.ts | 1 - src/assets/icons/text.svg | 3 - src/components/UserList/index.tsx | 10 ++-- .../AllResponseByReceiver/index.tsx | 2 +- .../AllResponseByResponser/index.tsx | 2 +- .../components/AnswerGroup/RenderHexaStat.tsx | 22 ++++--- .../AnswerGroup/RenderRefinedSubjective.tsx | 4 +- .../AnswerGroup/RenderStarRatingAnswer.tsx | 2 +- .../AnswerGroup/RenderSubjectiveAnswer.tsx | 4 +- .../components/AnswerGroup/index.tsx | 39 ++++++------ .../components/ProfileGroup/index.tsx | 4 +- .../ReceiverTabReviewDatail/index.tsx | 54 +++++++++-------- .../ResponserTabReviewDetail/index.tsx | 60 ++++++++++--------- .../components/SortDropDown/index.tsx | 2 +- .../CreatedReviewManagePage/constants.tsx | 24 +++----- src/pages/CreatedReviewManagePage/index.tsx | 15 +++-- .../ReplyCategory/ReplyDropdown/index.tsx | 2 +- .../ReplyCategory/ReplyText/index.tsx | 4 +- 18 files changed, 124 insertions(+), 130 deletions(-) delete mode 100644 src/assets/icons/text.svg diff --git a/src/assets/icons/index.ts b/src/assets/icons/index.ts index 6a4efe45..6d323237 100644 --- a/src/assets/icons/index.ts +++ b/src/assets/icons/index.ts @@ -12,7 +12,6 @@ export { default as CloseIcon } from './close.svg?react' export { default as ArrowBelowIcon } from './arrow-below.svg?react' export { default as RegistrationIcon } from './registration.svg?react' export { default as FilterIcon } from './filter.svg?react' -export { default as TextIcon } from './text.svg?react' export { default as CheckInTheCircleIcon } from './check-in-the-circle.svg?react' export { default as PlusIcon } from './plus.svg?react' export { default as LogoColIcon } from './logo-col.svg?react' diff --git a/src/assets/icons/text.svg b/src/assets/icons/text.svg deleted file mode 100644 index c58fff38..00000000 --- a/src/assets/icons/text.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index b3b14ca0..e4707f78 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -67,18 +67,18 @@ const UserList = ({ questionType !== 'PROCEEDING' && ( )} -
+
{date ? ( `답변일시: ${date}` ) : responserCount ? ( - 응답자:{responserCount && responserCount[index]}명 + 응답자: {responserCount && responserCount[index]}명 ) : (

@@ -105,12 +105,12 @@ const UserList = ({ )}

-
+
{date ? ( `답변일시: ${date}` ) : responserCount ? ( - 응답자:{responserCount && responserCount[index]}명 + 응답자: {responserCount && responserCount[index]}명 ) : (

diff --git a/src/pages/CreatedReviewManagePage/components/AllResponseByReceiver/index.tsx b/src/pages/CreatedReviewManagePage/components/AllResponseByReceiver/index.tsx index fd9b76f6..30a074d9 100644 --- a/src/pages/CreatedReviewManagePage/components/AllResponseByReceiver/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/AllResponseByReceiver/index.tsx @@ -42,7 +42,7 @@ const AllResponseReviewByResponser = ({

-
+
수신자: {responseByReceiver?.length || 0} diff --git a/src/pages/CreatedReviewManagePage/components/AllResponseByResponser/index.tsx b/src/pages/CreatedReviewManagePage/components/AllResponseByResponser/index.tsx index 30c1d20d..836e0821 100644 --- a/src/pages/CreatedReviewManagePage/components/AllResponseByResponser/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/AllResponseByResponser/index.tsx @@ -87,7 +87,7 @@ const AllResponseReviewByResponser = ({
{findUserBySearchKeyword?.length ? ( <> -
+
응답완료: { diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderHexaStat.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderHexaStat.tsx index e69dd6fd..8cb0a24e 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderHexaStat.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderHexaStat.tsx @@ -14,20 +14,24 @@ const RenderHexaStat = ({ return ( <>
-

+

{value?.name}

-
+
{filteredAnswers.map((value) => ( -
- +
+
+ -

{value?.userName}

-

{value?.value}

+

{value?.userName}

+
+

+ {value?.value} +

))}
diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderRefinedSubjective.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderRefinedSubjective.tsx index 7286f916..3ac64bbb 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderRefinedSubjective.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderRefinedSubjective.tsx @@ -43,7 +43,7 @@ const RenderRefinedSubjective = ({ return (
{isLoading && ( -
+
)} @@ -52,7 +52,7 @@ const RenderRefinedSubjective = ({ diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderStarRatingAnswer.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderStarRatingAnswer.tsx index 75331996..d262e2c6 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderStarRatingAnswer.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderStarRatingAnswer.tsx @@ -14,7 +14,7 @@ const RenderStarRatingAnswer = ({ value, userName }: StarRatingAnswerProps) => { src={BasicProfile} className="avatar h-[1.25rem] w-[1.25rem] border dark:bg-white dark:fill-white" /> -

{userName}

+

{userName}

diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderSubjectiveAnswer.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderSubjectiveAnswer.tsx index 3edde230..370e7a77 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderSubjectiveAnswer.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/RenderSubjectiveAnswer.tsx @@ -26,9 +26,9 @@ const RenderSubjectiveAnswer = ({ src={BasicProfile} className="avatar h-[1.25rem] w-[1.25rem] border dark:bg-white dark:fill-white" /> -

{value?.userName}

+

{value?.userName}

-

+

{value?.value}

diff --git a/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx b/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx index 4c9de30c..8be8e911 100644 --- a/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx +++ b/src/pages/CreatedReviewManagePage/components/AnswerGroup/index.tsx @@ -34,11 +34,11 @@ const renderDefault = (value: Answer) => (

-

{value?.userName}

+

{value?.userName}

-

+

{value?.value}

@@ -71,7 +71,7 @@ const QuestionAnswerRenderer = memo( className="accordion-content w-full border-x border-gray-200 text-black dark:text-white" key={nanoid()} > -
+
{(() => { switch (questionType) { case 'RATING': @@ -115,25 +115,26 @@ const QuestionAnswerRenderer = memo(