From 0bb2b4d052997e76efa6cab36eb100060afda653 Mon Sep 17 00:00:00 2001 From: bicochan Date: Thu, 7 May 2026 16:30:12 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20chore:=20=EC=95=8C=EB=A6=BC=ED=86=A1?= =?UTF-8?q?=EB=B0=9C=EC=86=A1=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../management/NoticeTalkSending.tsx | 57 ++++++++++--------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/apps/st/src/components/statistics/management/NoticeTalkSending.tsx b/apps/st/src/components/statistics/management/NoticeTalkSending.tsx index cdb060e30..ff5031193 100644 --- a/apps/st/src/components/statistics/management/NoticeTalkSending.tsx +++ b/apps/st/src/components/statistics/management/NoticeTalkSending.tsx @@ -77,6 +77,16 @@ interface SelectedRecipient extends SewerStUserItem { variableOverrides: Record; } +type CommonVariableKey = + | "userNm" + | "sido" + | "gugun" + | "gubunNm" + | "deptNm" + | "jbgdNm" + | "telNo" + | "custom"; + const EMPTY_ADST_LIST: AdstZoneResponseDto[] = []; const GUBUN_OPTIONS = [ { value: "PIC", label: "입력자" }, @@ -139,18 +149,7 @@ function NtitlkSndng() { Record >({}); const [commonVariableMapping, setCommonVariableMapping] = useState< - Record< - string, - | "userNm" - | "sido" - | "gugun" - | "gubunNm" - | "deptNm" - | "jbgdNm" - | "telNo" - | "custom" - | "" - > + Record >({}); const [previewRecipient, setPreviewRecipient] = @@ -286,7 +285,7 @@ function NtitlkSndng() { rowSelection: userListRowSelection, }, onRowSelectionChange: setUserListRowSelection, - getRowId: (row) => `${row.userNm}-${row.telNo}`, + getRowId: (row, i) => `${i}-${row.telNo}`, }); const selectedTemplate = useMemo( @@ -527,7 +526,7 @@ function NtitlkSndng() { -
+

미리보기

@@ -640,7 +639,7 @@ function NtitlkSndng() {
-
+
{isUserListLoading ? (
@@ -659,7 +658,7 @@ function NtitlkSndng() { )}
{!isUserListLoading && userList.length > 0 && ( -
+

선택{" "} @@ -692,6 +691,14 @@ function NtitlkSndng() { {selectedRecipients.length}명 +