diff --git a/.env.development b/.env.development index 0e4c0c6..9a396d2 100644 --- a/.env.development +++ b/.env.development @@ -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 \ No newline at end of file diff --git a/src/components/dialog/SmsSendDialog.tsx b/src/components/dialog/SmsSendDialog.tsx index b574a32..92447ab 100644 --- a/src/components/dialog/SmsSendDialog.tsx +++ b/src/components/dialog/SmsSendDialog.tsx @@ -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" /> -
-
미리보기
-
{previewBody}
- {isSmsOrLms &&
{getSmsByteLength(previewBody)} bytes
} -
{msgParamKeys.length > 0 && (
사용 가능 변수값