Skip to content

Commit

Permalink
refactor(member): toDecodeHTMLEntities 유틸로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeong-Ag committed Oct 7, 2024
1 parent e8d1673 commit 79efda9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion apps/member/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@tanstack/react-query-devtools": "^5.40.1",
"dayjs": "^1.11.10",
"framer-motion": "^10.18.0",
"html-entities": "^2.5.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useMemo } from 'react';

import { DetailsList } from '@clab-platforms/design-system';
import { toDecodeHTMLEntities } from '@clab-platforms/utils';

import { useModal } from '@hooks/common/useModal';
import { decode } from 'html-entities';

import { ApplicationMemberType } from '@type/application';

Expand Down Expand Up @@ -55,7 +55,7 @@ function ApplicationInfoModal({ data }: Props) {
<DetailsList.Item label="거주지">{address}</DetailsList.Item>
<DetailsList.Item label="희망분야">{interests}</DetailsList.Item>
<DetailsList.Item label="Github">{githubUrl ?? '-'}</DetailsList.Item>
<p className="mt-8">{decode(otherActivities)}</p>
<p className="mt-8">{toDecodeHTMLEntities(otherActivities)}</p>
</DetailsList>
);
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useMemo } from 'react';

import { DetailsList } from '@clab-platforms/design-system';
import { toDecodeHTMLEntities } from '@clab-platforms/utils';

import Image from '@components/common/Image/Image';

import { UseModalResult, useModal } from '@hooks/common/useModal';
import { useActivityGroup } from '@hooks/queries';
import { createImageUrl } from '@utils/api';
import { toKoreaActivityGroupCategory } from '@utils/string';
import { decode } from 'html-entities';

import type { ActivityGroupCategoryType } from '@type/activity';

Expand Down Expand Up @@ -59,7 +59,10 @@ function ActivityGroupInfoModal({ groupId }: Props) {
<DetailsList.Item label="이름">{name}</DetailsList.Item>
<DetailsList.Item label="대상">{subject}</DetailsList.Item>
<LongTextItem label="설명" text={content} />
<LongTextItem label="커리큘럼" text={decode(curriculum)} />
<LongTextItem
label="커리큘럼"
text={toDecodeHTMLEntities(curriculum)}
/>
<DetailsList.Item label="기술스텍">{techStack || '-'}</DetailsList.Item>
</DetailsList>
</div>
Expand Down
13 changes: 2 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79efda9

Please sign in to comment.