물재이용 지도 전반적인 수정 트리에서 클릭시 까지 완료(검색바 해야함)

This commit is contained in:
leedj312
2025-08-05 20:28:32 +09:00
parent 2c6327bc3a
commit 24a55142fb
72 changed files with 3009 additions and 88 deletions
+58
View File
@@ -0,0 +1,58 @@
export type comMapState = {
comMap: {
isFeatured:any
isModal:boolean
};
};
type comMapActions = {
selectFeature:(feature:any)=>void,
chModalOpen:(open:boolean) => void,
};
export type comMapType = comMapState & comMapActions;
export const comMapStateExport: comMapState = {
comMap: {
isFeatured:{},
isModal:false
},
};
export const commonMapActionsExport: (set: any) => comMapActions = (
set: any
) => {
return {
selectFeature:(feature:any) => {
try {
set((state: comMapState) => {
return {
...state,
comMap: {
...state.comMap,
isFeatured:feature
},
};
});
} catch (e) {
console.log(e)
}
},chModalOpen:(open:boolean) =>{
try {
set((state: comMapState) => {
return {
...state,
comMap: {
...state.comMap,
isModal:open
},
};
});
} catch (e) {
console.log(e)
}
}
}
}