260909_01_ENH: 문자 미리보기는 의미가 없어서 제거

This commit is contained in:
2026-09-09 15:06:15 +09:00
parent 3ea6905e00
commit 0708ddd936
2 changed files with 3 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
NEXT_PUBLIC_ENV=prod
NEXT_PUBLIC_ENV=dev
NEXT_PUBLIC_API_BASE=https://test-gwcf-review.kric.com/api
ENV=prod
ENV=dev
API_BACK_SERVER=http://127.0.0.1:6105/api/v1
NOTI_HUB_SERVER=https://noti-hub.kric.com/api/v1

View File

@@ -24,7 +24,7 @@ import {SaveTemplateRequest, Template} from "@/types/notification";
import {UserCompact} from "@/types/gwcf";
import {getDetailValue} from "@/lib/gwcf/view";
import {useAuth} from "@/hooks/useAuth";
import {buildTemplatePreviewBody, buildUserMsgParam, getSmsByteLength, isPhoneVerificationSupported} from "@/lib/gwcf/notification";
import { buildUserMsgParam, isPhoneVerificationSupported} from "@/lib/gwcf/notification";
import {getSmsParamLabel} from "@/lib/gwcf/field-labels";
import {TMPLAT_PURPOSE} from "@/types/notification";
@@ -209,7 +209,6 @@ export function SmsSendDialog({
setDraft(null);
};
const previewBody = draft ? buildTemplatePreviewBody(draft) : "";
const isSmsOrLms = draft ? isPhoneVerificationSupported(draft) : false;
const send = async () => {
@@ -356,11 +355,6 @@ export function SmsSendDialog({
className="min-h-80 w-full rounded-md border border-input bg-background p-3 text-sm disabled:cursor-not-allowed disabled:opacity-70"
/>
</label>
<div className="space-y-1 rounded-md border bg-muted/20 p-3 text-sm">
<div className="font-medium">미리보기</div>
<div className="whitespace-pre-wrap text-muted-foreground">{previewBody}</div>
{isSmsOrLms && <div className="text-xs text-muted-foreground">{getSmsByteLength(previewBody)} bytes</div>}
</div>
{msgParamKeys.length > 0 && (
<div className="space-y-1 text-sm">
<div className="font-medium text-muted-foreground">사용 가능 변수값</div>