260826_03_ENH: notihub 수정으로 인한 후속 조치 #29
@@ -22,7 +22,7 @@ import { escapeHtml, substituteVariables } from '@/lib/variableSubstitution'
|
|||||||
import type { DialogId } from '@/store/jotai/dialog'
|
import type { DialogId } from '@/store/jotai/dialog'
|
||||||
import type { MessageSendChannel, PhoneVerificationSendData, TemplateEmailWithAttachments } from '@/types/message'
|
import type { MessageSendChannel, PhoneVerificationSendData, TemplateEmailWithAttachments } from '@/types/message'
|
||||||
import TemplateAttachmentList from '@/components/message-template/TemplateAttachmentList'
|
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> = {
|
const titleMap: Record<MessageSendChannel, string> = {
|
||||||
email: '메일 발송',
|
email: '메일 발송',
|
||||||
@@ -239,6 +239,11 @@ const SingleMessageSendDialog = ({
|
|||||||
value={substituteVariables((selectedTemplate as TemplateSms).tmplatBody ?? '', previewValues)}
|
value={substituteVariables((selectedTemplate as TemplateSms).tmplatBody ?? '', previewValues)}
|
||||||
onChange={() => {}}
|
onChange={() => {}}
|
||||||
isSmsReadOnly
|
isSmsReadOnly
|
||||||
|
smsPreviewSuffix={
|
||||||
|
selectedTemplate.tmplatPurpose === TEMPLATE_PURPOSE.PHONE_VERIFICATION
|
||||||
|
? PHONE_VERIFICATION_PREVIEW_SUFFIX
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
placeholder="문자 내용을 입력해 주세요"
|
placeholder="문자 내용을 입력해 주세요"
|
||||||
className="max-w-80 mx-0"
|
className="max-w-80 mx-0"
|
||||||
debounceMs={600}
|
debounceMs={600}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const TEMPLATE_PURPOSE = {
|
|||||||
|
|
||||||
export const TEMPLATE_PURPOSE_OPTIONS = [
|
export const TEMPLATE_PURPOSE_OPTIONS = [
|
||||||
{ value: TEMPLATE_PURPOSE.NORMAL, label: "일반" },
|
{ value: TEMPLATE_PURPOSE.NORMAL, label: "일반" },
|
||||||
{ value: TEMPLATE_PURPOSE.PHONE_VERIFICATION, label: "휴대전화번호 인증" },
|
//{ value: TEMPLATE_PURPOSE.PHONE_VERIFICATION, label: "휴대전화번호 인증" },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const PHONE_VERIFICATION_PREVIEW_SUFFIX = "인증번호는 [######] 입니다.";
|
export const PHONE_VERIFICATION_PREVIEW_SUFFIX = "인증번호는 [######] 입니다.";
|
||||||
|
|||||||
Reference in New Issue
Block a user