This commit is contained in:
focp212@naver.com
2025-11-05 17:29:07 +09:00
parent f1f38551fa
commit 3982b3c745
15 changed files with 79 additions and 235 deletions

View File

@@ -16,6 +16,7 @@ import {
import useIntersectionObserver from '@/widgets/intersection-observer';
import { NoticeDetail } from '@/entities/support/ui/detail/notice-detail';
import { useParams } from 'react-router';
import { showAlert } from '@/widgets/show-alert';
export const NoticeListPage = () => {
const { navigate } = useNavigate();
@@ -97,8 +98,13 @@ export const NoticeListPage = () => {
&& rs.nextCursor !== pageParam.cursor
&& rs.content.length === DEFAULT_PAGE_PARAM.size
);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
return;
}
});
};
};
const onClickToAction = () => {
// Remove focus from active element