faq 99%
This commit is contained in:
@@ -36,7 +36,7 @@ export const FaqDetailPage = () => {
|
||||
<div className="faq-detail">
|
||||
<div className="faq-detail__title">{ title }</div>
|
||||
<div className="faq-detail__divider"></div>
|
||||
<div className="faq-detail__body">{ contents }</div>
|
||||
<div className="faq-detail__body" dangerouslySetInnerHTML={{ __html: contents }}>{ }</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,8 +19,9 @@ export const FaqListPage = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM);
|
||||
const [searchCl, setSearchCl] = useState<string | null>('HEAD');
|
||||
const [searchValue, setSearchValue] = useState<string>('');
|
||||
const [selectedCategory, setSelectedCategory] = useState<string>('all');
|
||||
const [selectedCategory, setSelectedCategory] = useState<string>('');
|
||||
const [resultList, setResultList] = useState<Array<FaqItem>>([]);
|
||||
|
||||
useSetHeaderTitle(t('support.faq.title'));
|
||||
@@ -34,6 +35,7 @@ export const FaqListPage = () => {
|
||||
const callList = () => {
|
||||
let listParams = {
|
||||
category: selectedCategory,
|
||||
searchCl: (!!searchValue)? searchCl: null,
|
||||
searchValue: searchValue,
|
||||
...{page: pageParam}
|
||||
};
|
||||
@@ -109,12 +111,15 @@ export const FaqListPage = () => {
|
||||
className="flex-1"
|
||||
value={selectedCategory}
|
||||
onChange={(e: ChangeEvent<HTMLSelectElement>) => setSelectedCategory(e.target.value)}>
|
||||
<option value="all">{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="02">{t('support.faq.categories.02')}</option>
|
||||
<option value="03">{t('support.faq.categories.03')}</option>
|
||||
<option value="04">{t('support.faq.categories.04')}</option>
|
||||
<option value="05">{t('support.faq.categories.05')}</option>
|
||||
<option value="06">{t('support.faq.categories.06')}</option>
|
||||
<option value="07">{t('support.faq.categories.07')}</option>
|
||||
<option value="08">{t('support.faq.categories.08')}</option>
|
||||
<option value="99">{t('support.faq.categories.99')}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user