From ea7203b7f0ff7b7e9388e44e45b6d4f6c75b8207 Mon Sep 17 00:00:00 2001 From: basssy Date: Fri, 7 Feb 2025 15:54:19 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=BC=EA=B1=B4=EC=83=81=EC=84=B8=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=20=EB=AC=B8=EC=84=9C=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/StuffDetail.jsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index 12ed35f4..e200da48 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -282,27 +282,26 @@ export default function StuffDetail() { autoHeight: true, cellStyle: { justifyContent: 'center' }, cellRenderer: (params) => { - let buttonStyle = { display: 'flex' } - let buttonStyle2 = { display: 'flex' } + let buttonStyle = '' + let buttonStyle2 = '' if (params.value == null) { - buttonStyle = { - display: 'none', - } - buttonStyle2 = { - display: 'none', - } + buttonStyle = 'none' + buttonStyle2 = 'none' } else { if (params?.data?.createSaleStoreId === 'T01') { if (session?.storeId !== 'T01') { - buttonStyle = { display: 'none' } + buttonStyle = 'none' } } + if (params?.data?.tempFlg === '1') { + buttonStyle2 = 'none' + } } return ( <>