-
+
diff --git a/apps/wr/components/ui/modal/fcltReg/bdstChgModal/bdstChgModal.tsx b/apps/wr/components/ui/modal/fcltReg/bdstChgModal/bdstChgModal.tsx
index 0b071aa91..09f66ed2a 100644
--- a/apps/wr/components/ui/modal/fcltReg/bdstChgModal/bdstChgModal.tsx
+++ b/apps/wr/components/ui/modal/fcltReg/bdstChgModal/bdstChgModal.tsx
@@ -1,8 +1,6 @@
import { useWrStore } from "@/app/store";
import { UiTable } from "@common/business_components/ui";
import ListDiv from "@common/business_components/ui/list_div";
-import { useEffect } from "react";
-
import type {
@@ -10,7 +8,7 @@ import type {
} from "@/app/store/ruseFcltMng/fcltReg/rainReg";
export default function BdstChgModal({ chgBuilding }: { chgBuilding:chgBuilding[] }) {
-const {bdst,rain} = useWrStore((state) => {
+const {bdst} = useWrStore((state) => {
return state;
});
const { bdstChgHeadList } = bdst;
@@ -26,7 +24,6 @@ const { bdstChgHeadList } = bdst;
onPageChange={() => {}}
headName={"○건축물 변경 이력"}
tableData={chgBuilding}
- children={undefined}
cellClick={undefined}
/>
diff --git a/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx b/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx
index a049772e8..c087096f3 100644
--- a/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx
+++ b/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx
@@ -12,7 +12,7 @@ import {
} from "@common/business_components";
import { Button, Input, Label } from "@common/components";
import { useEffect, useState } from "react";
-import { getCity, tableData } from "@/components/lib/func/commom";
+import { tableData } from "@/components/lib/func/commom";
import type { customRswtBdst } from "@/app/store/ruseFcltMng/fcltReg/rswtReg";
import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg";
import RainRegForm from "@/components/ui/form/fcltReg/rainReg/rainRegForm";
@@ -35,17 +35,15 @@ type BdstTypeMap = {
interface BdstRegProps
{
moType: T;
isModal: boolean;
- siSggCode?: string;
setIsModal?: (open: boolean) => void;
}
export function BdstReg({
moType,
setIsModal,
- siSggCode,
isModal,
}: BdstRegProps) {
- const { rain, code, bdst, findBdst } = useWrStore((state) => {
+ const { code, bdst, findBdst } = useWrStore((state) => {
return state;
});
@@ -56,14 +54,12 @@ export function BdstReg({
{} as BdstTypeMap[T]
);
const [searchTxt, setSearchTxt] = useState();
- const [selectSgg, setSelectSgg] = useState();
const [objSearch, setObjSearch] = useState({
sgg: "",
city: "",
});
const [useCityCd, setUserCityCd] = useState([]);
const [useSggCd, setUserSggCd] = useState([]);
- const [dataCode, setDataCode] = useState();
const searchBdst = (searchTxt: string | undefined) => {
let data = objSearch.city;
@@ -78,7 +74,7 @@ export function BdstReg({
useEffect(() => {
if (code.sggCd.length > 0) {
const bdstData = bdst.bdstBase.map((bdst) => {
- let archArea =
+ const archArea =
bdst?.archArea.split(".")[0] !== "-1"
? bdst?.archArea.split(".")[0]
: "확인불가";
@@ -117,8 +113,7 @@ export function BdstReg({
}, [userSiSggCd, code.cityCd, code.sggCd]);
const tableClick: (val: number | undefined, headId: string) => void = (
- val,
- headId
+ val
) => {
if (val !== undefined && bdst?.bdstBase.length > 0) {
const data: BdstTypeMap[T] = bdst?.bdstBase[val];
@@ -195,6 +190,7 @@ export function BdstReg({
cellClick={(idx, headId) => tableClick(idx, headId || "")}
onPageChange={function (page: number): void {
throw new Error("Function not implemented.");
+ console.log("page ", page);
}}
>