From 0c1697596503dd57466a648f448b0d637d899a2b Mon Sep 17 00:00:00 2001 From: minsik Date: Tue, 29 Oct 2024 14:26:25 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=81=EB=8F=84/=EA=B2=BD=EC=82=AC=20?= =?UTF-8?q?=EB=8B=A8=EC=9C=84=20=ED=91=9C=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modal/dimensionLine/DimensionLineSetting.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx b/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx index 57fe3364..d24d8d43 100644 --- a/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx +++ b/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx @@ -1,15 +1,17 @@ import WithDraggable from '@/components/common/draggable/WithDraggable' import { usePopup } from '@/hooks/usePopup' import { useMessage } from '@/hooks/useMessage' -import { useRecoilValue } from 'recoil' +import { useRecoilState, useRecoilValue } from 'recoil' import { contextPopupPositionState } from '@/store/popupAtom' import QSelectBox from '@/components/common/select/QSelectBox' +import { pitchTextSelector } from '@/store/canvasAtom' export default function DimensionLineSetting(props) { const contextPopupPosition = useRecoilValue(contextPopupPositionState) const { id, setIsShow, pos = contextPopupPosition } = props const { getMessage } = useMessage() const { closePopup } = usePopup() + const pitchText = useRecoilState(pitchTextSelector) const SelectOption01 = [{ name: '0' }, { name: '0' }, { name: '0' }, { name: '0' }] return ( @@ -52,14 +54,14 @@ export default function DimensionLineSetting(props) {
- 寸法 + {pitchText}
傾斜
- 寸法 + {pitchText}
傾き設定されている場合、入力した数値に傾き計算をした数値が表示されます。