공지사항
This commit is contained in:
@@ -61,7 +61,7 @@ export interface QnaSaveResponse {
|
|||||||
export interface NoticeListParams extends SupportParams {
|
export interface NoticeListParams extends SupportParams {
|
||||||
informCl?: InformCl | string;
|
informCl?: InformCl | string;
|
||||||
searchCl?: SearchCl | null;
|
searchCl?: SearchCl | null;
|
||||||
searchValue?: string;
|
searchKeyword?: string;
|
||||||
page?: DefaultRequestPagination;
|
page?: DefaultRequestPagination;
|
||||||
};
|
};
|
||||||
export interface NoticeItem {
|
export interface NoticeItem {
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export const FaqListPage = () => {
|
|||||||
<div className="tab-content">
|
<div className="tab-content">
|
||||||
<div className="tab-pane sub active">
|
<div className="tab-pane sub active">
|
||||||
<div className="faq-section pb-86">
|
<div className="faq-section pb-86">
|
||||||
<div className="faq-controlls">
|
<div className="notice-controls">
|
||||||
<div className="faq-search">
|
<div className="faq-search">
|
||||||
<span
|
<span
|
||||||
className="ic16 search"
|
className="ic16 search"
|
||||||
@@ -156,11 +156,12 @@ export const FaqListPage = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="faq-filter">
|
<div className="notice-filter">
|
||||||
<select
|
<select
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
value={ selectedCategory }
|
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="">{ t('support.faq.categories.all') }</option>
|
||||||
<option value="01">{ t('support.faq.categories.01') }</option>
|
<option value="01">{ t('support.faq.categories.01') }</option>
|
||||||
<option value="02">{ t('support.faq.categories.02') }</option>
|
<option value="02">{ t('support.faq.categories.02') }</option>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const NoticeListPage = () => {
|
|||||||
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
||||||
const [nextCursor, setNextCursor] = useState<string | null>(null);
|
const [nextCursor, setNextCursor] = useState<string | null>(null);
|
||||||
const [informCl, setInformCl] = useState<InformCl | string>('');
|
const [informCl, setInformCl] = useState<InformCl | string>('');
|
||||||
const [searchValue, setSearchValue] = useState<string>('');
|
const [searchKeyword, setSearchKeyword] = useState<string>('');
|
||||||
const [resultList, setResultList] = useState<Array<NoticeItem>>([]);
|
const [resultList, setResultList] = useState<Array<NoticeItem>>([]);
|
||||||
|
|
||||||
useSetHeaderTitle(t('support.notice.title'));
|
useSetHeaderTitle(t('support.notice.title'));
|
||||||
@@ -57,8 +57,8 @@ export const NoticeListPage = () => {
|
|||||||
const callList = (type?: string) => {
|
const callList = (type?: string) => {
|
||||||
let listParams: NoticeListParams = {
|
let listParams: NoticeListParams = {
|
||||||
informCl: informCl,
|
informCl: informCl,
|
||||||
searchCl: (!!searchValue)? SearchCl.HEAD: null,
|
searchCl: (!!searchKeyword)? SearchCl.HEAD: null,
|
||||||
searchValue: searchValue,
|
searchKeyword: searchKeyword,
|
||||||
...{
|
...{
|
||||||
page: pageParam
|
page: pageParam
|
||||||
}
|
}
|
||||||
@@ -141,8 +141,8 @@ export const NoticeListPage = () => {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={ t('support.notice.searchPlaceholder') }
|
placeholder={ t('support.notice.searchPlaceholder') }
|
||||||
value={ searchValue }
|
value={ searchKeyword }
|
||||||
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSearchValue(e.target.value) }
|
onChange={ (e: ChangeEvent<HTMLInputElement>) => setSearchKeyword(e.target.value) }
|
||||||
onKeyDown={ (e: React.KeyboardEvent<HTMLInputElement>) => {
|
onKeyDown={ (e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||||
if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
|
if (e.key === 'Enter' && !e.nativeEvent.isComposing) {
|
||||||
onClickToAction();
|
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="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="IMPORTANT_NOTICE">{ t('support.notice.categories.IMPORTANT_NOTICE') }</option>
|
||||||
<option value="ADDITIONAL_SERVICE">{ t('support.notice.categories.ADDITIONAL_SERVICE') }</option>
|
<option value="ADDITIONAL_SERVICE">{ t('support.notice.categories.ADDITIONAL_SERVICE') }</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user