공지사항

This commit is contained in:
focp212@naver.com
2025-10-22 19:09:34 +09:00
parent 25fb247d73
commit 5a5aa79f2e
3 changed files with 12 additions and 12 deletions

View File

@@ -61,7 +61,7 @@ export interface QnaSaveResponse {
export interface NoticeListParams extends SupportParams {
informCl?: InformCl | string;
searchCl?: SearchCl | null;
searchValue?: string;
searchKeyword?: string;
page?: DefaultRequestPagination;
};
export interface NoticeItem {

View File

@@ -137,7 +137,7 @@ export const FaqListPage = () => {
<div className="tab-content">
<div className="tab-pane sub active">
<div className="faq-section pb-86">
<div className="faq-controlls">
<div className="notice-controls">
<div className="faq-search">
<span
className="ic16 search"
@@ -156,11 +156,12 @@ export const FaqListPage = () => {
}}
/>
</div>
<div className="faq-filter">
<div className="notice-filter">
<select
className="flex-1"
value={ selectedCategory }
onChange={ (e: ChangeEvent<HTMLSelectElement>) => setSelectedCategory(e.target.value) }>
onChange={ (e: ChangeEvent<HTMLSelectElement>) => setSelectedCategory(e.target.value) }
>
<option value="">{ t('support.faq.categories.all') }</option>
<option value="01">{ t('support.faq.categories.01') }</option>
<option value="02">{ t('support.faq.categories.02') }</option>

View File

@@ -23,7 +23,7 @@ export const NoticeListPage = () => {
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
const [nextCursor, setNextCursor] = useState<string | null>(null);
const [informCl, setInformCl] = useState<InformCl | string>('');
const [searchValue, setSearchValue] = useState<string>('');
const [searchKeyword, setSearchKeyword] = useState<string>('');
const [resultList, setResultList] = useState<Array<NoticeItem>>([]);
useSetHeaderTitle(t('support.notice.title'));
@@ -57,8 +57,8 @@ export const NoticeListPage = () => {
const callList = (type?: string) => {
let listParams: NoticeListParams = {
informCl: informCl,
searchCl: (!!searchValue)? SearchCl.HEAD: null,
searchValue: searchValue,
searchCl: (!!searchKeyword)? SearchCl.HEAD: null,
searchKeyword: searchKeyword,
...{
page: pageParam
}
@@ -141,8 +141,8 @@ export const NoticeListPage = () => {
<input
type="text"
placeholder={ t('support.notice.searchPlaceholder') }
value={ searchValue }
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSearchValue(e.target.value) }
value={ searchKeyword }
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSearchKeyword(e.target.value) }
onKeyDown={ (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
onClickToAction();
@@ -165,7 +165,6 @@ export const NoticeListPage = () => {
<option value="SERVICE_CHANGE_OR_ADDITION">{ t('support.notice.categories.SERVICE_CHANGE_OR_ADDITION') }</option>
<option value="IMPORTANT_NOTICE">{ t('support.notice.categories.IMPORTANT_NOTICE') }</option>
<option value="ADDITIONAL_SERVICE">{ t('support.notice.categories.ADDITIONAL_SERVICE') }</option>
</select>
</div>
</div>