This commit is contained in:
focp212@naver.com
2025-11-04 16:38:42 +09:00
parent 646aa0d3c0
commit 47bd25f7e3
17 changed files with 272 additions and 119 deletions

View File

@@ -11,27 +11,26 @@ import { FullMenuClose } from '@/entities/common/ui/full-menu-close';
export interface NoticeDetaillProps {
detailOn: boolean;
setDetailOn: (detailOn: boolean) => void;
seq: number;
seq?: number | string;
};
export const NoticeDetail = ({
detailOn,
setDetailOn,
seq
}: NoticeDetaillProps) => {
const location = useLocation();
const { t } = useTranslation();
const [result, setResult] = useState<NoticeItem>({});
const { mutateAsync: noticeDetail } = useNoticeDetailMutation();
const callDetail = () => {
let detailParams: NoticeDetailParams = {
seq: seq,
};
noticeDetail(detailParams).then((rs: NoticeDetailResponse) => {
setResult(rs);
});
if(!!seq){
let detailParams: NoticeDetailParams = {
seq: seq,
};
noticeDetail(detailParams).then((rs: NoticeDetailResponse) => {
setResult(rs);
});
}
};
const onClickToClose = () => {