diff --git a/src/components/floor-plan/modal/module/PanelEdit.jsx b/src/components/floor-plan/modal/module/PanelEdit.jsx
index 5d38f9a8..a6d1d4f9 100644
--- a/src/components/floor-plan/modal/module/PanelEdit.jsx
+++ b/src/components/floor-plan/modal/module/PanelEdit.jsx
@@ -11,6 +11,7 @@ import * as turf from '@turf/turf'
import { POLYGON_TYPE } from '@/common/common'
import { useModal } from '@nextui-org/react'
import { useModule } from '@/hooks/module/useModule'
+import { useSwal } from '@/hooks/useSwal'
export const PANEL_EDIT_TYPE = {
MOVE: 'move',
@@ -31,6 +32,7 @@ export default function PanelEdit(props) {
const [direction, setDirection] = useState('up')
const { getMessage } = useMessage()
const canvas = useRecoilValue(canvasState)
+ const { swalFire } = useSwal()
const { moduleMove, moduleCopy, moduleMultiMove, moduleMultiCopy, moduleMoveAll, moduleCopyAll } = useModule()
useEffect(() => {
@@ -42,6 +44,14 @@ export default function PanelEdit(props) {
//모듈 이동 적용
const handleApply = () => {
+ if (length <= 0) {
+ swalFire({
+ title: getMessage('common.message.please.input.over', [1]),
+ type: 'alert',
+ icon: 'error',
+ })
+ return
+ }
switch (type) {
case PANEL_EDIT_TYPE.MOVE:
moduleMove(length, direction)
diff --git a/src/components/floor-plan/modal/roofShape/passivity/Shed.js b/src/components/floor-plan/modal/roofShape/passivity/Shed.js
deleted file mode 100644
index 474c2f60..00000000
--- a/src/components/floor-plan/modal/roofShape/passivity/Shed.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import { useMessage } from '@/hooks/useMessage'
-
-export default function Shed({ offsetRef }) {
- const { getMessage } = useMessage()
- return (
- <>
-
-
- {getMessage('shed.width')}
-
-
-
-
-
mm
-
- >
- )
-}
diff --git a/src/hooks/roofcover/useAuxiliaryDrawing.js b/src/hooks/roofcover/useAuxiliaryDrawing.js
index 55053b7e..4997bdf8 100644
--- a/src/hooks/roofcover/useAuxiliaryDrawing.js
+++ b/src/hooks/roofcover/useAuxiliaryDrawing.js
@@ -651,7 +651,7 @@ export function useAuxiliaryDrawing(id) {
{
stroke: 'black',
strokeWidth: 1,
- selectable: false,
+ selectable: true,
name: 'auxiliaryLine',
isFixed: true,
},
@@ -721,7 +721,7 @@ export function useAuxiliaryDrawing(id) {
newLine = addLine([line1.x1, line1.y1, intersectionPoint.x, intersectionPoint.y], {
stroke: 'black',
strokeWidth: 1,
- selectable: false,
+ selectable: true,
name: 'auxiliaryLine',
isFixed: true,
intersectionPoint,
@@ -730,7 +730,7 @@ export function useAuxiliaryDrawing(id) {
newLine = addLine([line1.x2, line1.y2, intersectionPoint.x, intersectionPoint.y], {
stroke: 'black',
strokeWidth: 1,
- selectable: false,
+ selectable: true,
name: 'auxiliaryLine',
isFixed: true,
intersectionPoint,
diff --git a/src/locales/ja.json b/src/locales/ja.json
index cbd9cbd1..4374def9 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -474,6 +474,7 @@
"common.message.pleaseSelect": "{0}を選択してください",
"common.message.pleaseInput": "{0}を入力してください。",
"common.message.pleaseInputOr": "{0}または{1}を入力してください。",
+ "common.message.please.input.over": "{0} 이상 값을 입력해주세요.(JA)",
"common.message.approved ": "承認済み",
"common.message.errorFieldExist": "エラー項目が存在します",
"common.message.storeIdExist ": "既に利用されている販売店IDです",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 56c5bb93..42bfc7ac 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -483,6 +483,7 @@
"common.message.pleaseSelect": "Please Select {0}",
"common.message.pleaseInput": "Please Input a {0}.",
"common.message.pleaseInputOr": "Please Input a {0} or {1}.",
+ "common.message.please.input.over": "{0} 이상 값을 입력해주세요.",
"common.message.approved ": "Approved.",
"common.message.errorFieldExist": "Error Field Exist",
"common.message.storeIdExist ": "이미 사용하고 있는 판매점 ID 입니다.",