support 키 변경 관련
This commit is contained in:
@@ -9,8 +9,7 @@ export const HomeNoticeItem = ({
|
||||
seq,
|
||||
title,
|
||||
informCl,
|
||||
regDate,
|
||||
isNew
|
||||
regDt,
|
||||
}: NoticeItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
@@ -32,7 +31,7 @@ export const HomeNoticeItem = ({
|
||||
>
|
||||
<div className="notice-content">
|
||||
<div className="notice-title">{ title }</div>
|
||||
<div className="notice-meta">{ t(`support.notice.categories.${informCl}`) }<span>{ moment(regDate).format('YY년 MM월 DD일') }</span></div>
|
||||
<div className="notice-meta">{ t(`support.notice.categories.${informCl}`) }<span>{ moment(regDt).format('YY년 MM월 DD일') }</span></div>
|
||||
</div>
|
||||
<div className="notice-arrow">
|
||||
<img
|
||||
|
||||
@@ -23,8 +23,7 @@ export const HomeNoticeList = () => {
|
||||
seq={ resultList[i]?.seq }
|
||||
title={ resultList[i]?.title }
|
||||
informCl={ resultList[i]?.informCl }
|
||||
regDate={ resultList[i]?.regDate }
|
||||
isNew={ resultList[i]?.isNew }
|
||||
regDt={ resultList[i]?.regDt }
|
||||
></HomeNoticeItem>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,10 +10,9 @@ export interface FaqListParams {
|
||||
page?: DefaultRequestPagination;
|
||||
};
|
||||
export interface FaqItem {
|
||||
sortNo?: string;
|
||||
cursorId?: number;
|
||||
seq?: string;
|
||||
category?: string;
|
||||
categoryName?: string;
|
||||
title?: string;
|
||||
contents?: string;
|
||||
};
|
||||
@@ -30,16 +29,18 @@ export interface QnaListParams extends SupportParams {
|
||||
page?: DefaultRequestPagination;
|
||||
};
|
||||
export interface QnaItem {
|
||||
answer?: string;
|
||||
answerDate?: string;
|
||||
contents?: string;
|
||||
corpName?: string | null;
|
||||
cursorId?: number;
|
||||
seq?: string;
|
||||
statusCode?: string;
|
||||
requestType?: string;
|
||||
requestDate?: string;
|
||||
requestName?: string;
|
||||
answerDate?: string;
|
||||
requestType?: string;
|
||||
sendEmail?: string | null;
|
||||
seq?: string;
|
||||
statusCode?: string;
|
||||
title?: string;
|
||||
contents?: string;
|
||||
answer?: string;
|
||||
};
|
||||
export interface QnaListResponse extends DefaulResponsePagination {
|
||||
content: Array<QnaItem>
|
||||
@@ -67,11 +68,9 @@ export interface NoticeListParams extends SupportParams {
|
||||
export interface NoticeItem {
|
||||
seq?: number;
|
||||
title?: string;
|
||||
contents?: string;
|
||||
informCl?: InformCl | string;
|
||||
regDate?: string;
|
||||
isNew?: boolean;
|
||||
viewCount?: number;
|
||||
regDt?: string;
|
||||
contents?: string;
|
||||
};
|
||||
export interface NoticeListResponse {
|
||||
content: Array<NoticeItem>;
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
import { PATHS } from '@/shared/constants/paths';
|
||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||
import { FaqItemProps } from '../model/types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const SupportFaqItem = ({
|
||||
sortNo,
|
||||
cursorId,
|
||||
seq,
|
||||
category,
|
||||
categoryName,
|
||||
title,
|
||||
contents,
|
||||
}: FaqItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const onClickToDetail = () => {
|
||||
navigate(PATHS.support.faq.detail, {
|
||||
state: {
|
||||
cursorId,
|
||||
seq,
|
||||
category,
|
||||
title,
|
||||
contents
|
||||
}
|
||||
@@ -29,7 +33,7 @@ export const SupportFaqItem = ({
|
||||
>
|
||||
<div className="faq-txt">
|
||||
<div className="faq-title">{ title }</div>
|
||||
<div className="faq-tag">{ categoryName }</div>
|
||||
<div className="faq-tag">{ t('support.faq.categories.' + category) }</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -8,8 +8,7 @@ export const SupportNoticeItem = ({
|
||||
seq,
|
||||
title,
|
||||
informCl,
|
||||
regDate,
|
||||
isNew
|
||||
regDt,
|
||||
}: NoticeItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
@@ -32,7 +31,7 @@ export const SupportNoticeItem = ({
|
||||
<div className="notice-txt">
|
||||
<div className="notice-title-114">{ title }</div>
|
||||
<div className="notice-meta-114">
|
||||
<span className="blue">{ t(`support.notice.categories.${informCl}`) }</span> ㅣ <span>{ moment(regDate).format('YYYY.MM.DD HH:mm:ss') }</span>
|
||||
<span className="blue">{ t(`support.notice.categories.${informCl}`) }</span> ㅣ <span>{ moment(regDt).format('YYYY.MM.DD HH:mm:ss') }</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,30 +5,36 @@ import { QnaItemProps } from '../model/types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const SupportQnaItem = ({
|
||||
answer,
|
||||
answerDate,
|
||||
contents,
|
||||
corpName,
|
||||
cursorId,
|
||||
seq,
|
||||
statusCode,
|
||||
requestType,
|
||||
requestDate,
|
||||
requestName,
|
||||
answerDate,
|
||||
title,
|
||||
contents,
|
||||
answer
|
||||
requestType,
|
||||
sendEmail,
|
||||
seq,
|
||||
statusCode,
|
||||
title
|
||||
}: QnaItemProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
const onClickToDetail = () => {
|
||||
navigate(PATHS.support.qna.detail, {
|
||||
state: {
|
||||
statusCode,
|
||||
requestType,
|
||||
requestDate,
|
||||
requestName,
|
||||
answerDate,
|
||||
title,
|
||||
contents,
|
||||
answer
|
||||
answer: answer,
|
||||
answerDate: answerDate,
|
||||
contents: contents,
|
||||
corpName: corpName,
|
||||
cursorId: cursorId,
|
||||
requestDate: requestDate,
|
||||
requestName: requestName,
|
||||
requestType: requestType,
|
||||
sendEmail: sendEmail,
|
||||
seq: seq,
|
||||
statusCode: statusCode,
|
||||
title: title
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user