From 5c03f7f021b7deb70ae8144c8e2e46df303d6a85 Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Thu, 20 Nov 2025 10:22:36 +0900 Subject: [PATCH] =?UTF-8?q?back=20=ED=82=A4=20=EC=A0=9C=EC=96=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/home/ui/home-notice-list.tsx | 3 ++- src/pages/support/faq/list-page.tsx | 3 ++- src/pages/support/notice/list-page.tsx | 3 ++- src/pages/support/qna/list-page.tsx | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/entities/home/ui/home-notice-list.tsx b/src/entities/home/ui/home-notice-list.tsx index 42cc85b..88d68d7 100644 --- a/src/entities/home/ui/home-notice-list.tsx +++ b/src/entities/home/ui/home-notice-list.tsx @@ -7,13 +7,14 @@ import { useTranslation } from 'react-i18next'; import { NoticeDetail } from '@/entities/support/ui/detail/notice-detail'; import { showAlert } from '@/widgets/show-alert'; import { snackBar } from '@/shared/lib'; +import { useDetailOnStore } from '@/shared/model/store'; export const HomeNoticeList = () => { const { t } = useTranslation(); const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM); const [resultList, setResultList] = useState>([]); - const [detailOn, setDetailOn] = useState(false); + const { detailOn, setDetailOn } = useDetailOnStore(); const [detailSeq, setDetailSeq] = useState(); const { mutateAsync: noticeList } = useNoticeListMutation(); diff --git a/src/pages/support/faq/list-page.tsx b/src/pages/support/faq/list-page.tsx index 7d0ccfd..0b774e5 100644 --- a/src/pages/support/faq/list-page.tsx +++ b/src/pages/support/faq/list-page.tsx @@ -18,6 +18,7 @@ import { FaqDetail } from '@/entities/support/ui/detail/faq-detail'; import { checkGrant } from '@/shared/lib/check-grant'; import { showAlert } from '@/widgets/show-alert'; import { snackBar } from '@/shared/lib'; +import { useDetailOnStore } from '@/shared/model/store'; export const FaqListPage = () => { const { navigate } = useNavigate(); @@ -28,7 +29,7 @@ export const FaqListPage = () => { const [searchValue, setSearchValue] = useState(''); const [selectedCategory, setSelectedCategory] = useState(''); const [resultList, setResultList] = useState>([]); - const [detailOn, setDetailOn] = useState(false); + const { detailOn, setDetailOn } = useDetailOnStore(); const [detailFaqItem, setDetailFaqItem] = useState({}); useSetHeaderTitle(t('support.faq.title')); diff --git a/src/pages/support/notice/list-page.tsx b/src/pages/support/notice/list-page.tsx index c85d97e..697dc00 100644 --- a/src/pages/support/notice/list-page.tsx +++ b/src/pages/support/notice/list-page.tsx @@ -18,6 +18,7 @@ import { NoticeDetail } from '@/entities/support/ui/detail/notice-detail'; import { useParams } from 'react-router'; import { showAlert } from '@/widgets/show-alert'; import { snackBar } from '@/shared/lib'; +import { useDetailOnStore } from '@/shared/model/store'; export const NoticeListPage = () => { const { navigate } = useNavigate(); @@ -29,7 +30,7 @@ export const NoticeListPage = () => { const [informCl, setInformCl] = useState(''); const [searchKeyword, setSearchKeyword] = useState(''); const [resultList, setResultList] = useState>([]); - const [detailOn, setDetailOn] = useState(false); + const { detailOn, setDetailOn } = useDetailOnStore(); const [detailSeq, setDetailSeq] = useState(); useSetHeaderTitle(t('support.notice.title')); diff --git a/src/pages/support/qna/list-page.tsx b/src/pages/support/qna/list-page.tsx index 46d7ab2..1bef674 100644 --- a/src/pages/support/qna/list-page.tsx +++ b/src/pages/support/qna/list-page.tsx @@ -1,4 +1,4 @@ -import { useStore } from '@/shared/model/store'; +import { useDetailOnStore, useStore } from '@/shared/model/store'; import { ChangeEvent, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { PATHS } from '@/shared/constants/paths'; @@ -39,7 +39,7 @@ export const QnaListPage = () => { const [pageParam, setPageParam] = useState(DEFAULT_PAGE_PARAM); const [statusCode, setStatusCode] = useState(''); // 02, 03 const [resultList, setResultList] = useState>([]); - const [detailOn, setDetailOn] = useState(false); + const { detailOn, setDetailOn } = useDetailOnStore(); const [detailSeq, setDetailSeq] = useState(); useSetHeaderTitle(t('support.qna.title'));