Merge pull request '260826_03_ENH: notihub 수정으로 인한 후속 조치' (#29) from develop into master

Reviewed-on: #29
This commit is contained in:
2026-08-27 08:39:32 +09:00
2 changed files with 7 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ import { escapeHtml, substituteVariables } from '@/lib/variableSubstitution'
import type { DialogId } from '@/store/jotai/dialog'
import type { MessageSendChannel, PhoneVerificationSendData, TemplateEmailWithAttachments } from '@/types/message'
import TemplateAttachmentList from '@/components/message-template/TemplateAttachmentList'
import { TEMPLATE_PURPOSE } from '@/const/messageTemplateConst'
import {PHONE_VERIFICATION_PREVIEW_SUFFIX, TEMPLATE_PURPOSE} from '@/const/messageTemplateConst'
const titleMap: Record<MessageSendChannel, string> = {
email: '메일 발송',
@@ -239,6 +239,11 @@ const SingleMessageSendDialog = ({
value={substituteVariables((selectedTemplate as TemplateSms).tmplatBody ?? '', previewValues)}
onChange={() => {}}
isSmsReadOnly
smsPreviewSuffix={
selectedTemplate.tmplatPurpose === TEMPLATE_PURPOSE.PHONE_VERIFICATION
? PHONE_VERIFICATION_PREVIEW_SUFFIX
: undefined
}
placeholder="문자 내용을 입력해 주세요"
className="max-w-80 mx-0"
debounceMs={600}

View File

@@ -22,7 +22,7 @@ export const TEMPLATE_PURPOSE = {
export const TEMPLATE_PURPOSE_OPTIONS = [
{ value: TEMPLATE_PURPOSE.NORMAL, label: "일반" },
{ value: TEMPLATE_PURPOSE.PHONE_VERIFICATION, label: "휴대전화번호 인증" },
//{ value: TEMPLATE_PURPOSE.PHONE_VERIFICATION, label: "휴대전화번호 인증" },
] as const;
export const PHONE_VERIFICATION_PREVIEW_SUFFIX = "인증번호는 [######] 입니다.";