From 4d5bbfe875ce7a87d3d78b1185687c9a3260655f Mon Sep 17 00:00:00 2001 From: basssy Date: Mon, 6 Jan 2025 09:43:51 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EB=AC=BC=EA=B1=B4=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=ED=99=94=EB=A9=B4=EC=97=90=EC=84=9C=20=20=EB=B3=B5=EC=82=AC?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=ED=99=95=EC=9D=B8=20=EC=BD=98=EC=86=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/Stuff.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/management/Stuff.jsx b/src/components/management/Stuff.jsx index 0ae7299b..65a8a2eb 100644 --- a/src/components/management/Stuff.jsx +++ b/src/components/management/Stuff.jsx @@ -42,9 +42,11 @@ export default function Stuff() { //그리드 내부 복사버튼 const copyNo = async (value) => { try { + console.log('value::::::::', value) await navigator.clipboard.writeText(value) alert(getMessage('stuff.detail.header.successCopy')) } catch (error) { + console.log('error::::::::::', error) alert(getMessage('stuff.detail.header.failCopy')) } } From f2f720d6ffd4586c74fa003388b9c6dad038ee13 Mon Sep 17 00:00:00 2001 From: changkyu choi Date: Mon, 6 Jan 2025 10:16:42 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EB=B0=B0=EC=B9=98=EB=A9=B4=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=EC=84=A4=EC=A0=95=20=EC=88=98=EC=A0=95=20-=20setCurre?= =?UTF-8?q?ntRoof=20=EC=82=AC=EC=9A=A9=20=EB=B0=8F=20roofMaterials=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=20=EC=84=A4=EC=A0=95=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../placementShape/PlacementShapeSetting.jsx | 10 +++------- src/hooks/option/useCanvasSetting.js | 19 ++++++++++++++----- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index a439481c..e7287e5b 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -49,7 +49,6 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set }, []) useEffect(() => { - if (currentRoof.roofMatlCd.length > 0) { setBasicSettings({ ...basicSetting, roofsData: { @@ -63,7 +62,6 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set roofLayout: currentRoof.layout, }, }) - } }, [basicSetting.roofSizeSet, basicSetting.roofAngleSet, currentRoof]) // Function to update the roofType and corresponding values @@ -245,13 +243,11 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, set options={roofMaterials.map((roof, index) => { return { ...roof, name: globalLocale === 'ko' ? roof.roofMatlNm : roof.roofMatlNmJp } })} - //value={roofMaterials.find((r) => r.roofMatlCd === basicSetting.roofs[0]?.roofMatlCd)} - //title={basicSetting.roofs[0]?.roofMatlNm} value={basicSetting.roofSizeSet == 3 ? null : currentRoof.roofMatlCd} onChange={(e) => handleRoofTypeChange(e.roofMatlCd)} - //sourceKey="id" - //targetKey="id" - //showKey="name" + sourceKey="id" + targetKey="id" + showKey="name" disabled={basicSetting.roofSizeSet == 3} /> {/*