diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-30 06:42:47 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-30 06:42:47 +0000 |
| commit | 0cd76046aa7c5426d42740f9acb06c42e4d7e686 (patch) | |
| tree | e4762a6849dab581e398b83e1598cb84581cec03 /app | |
| parent | 9e3458481a65bb5572b7f1916e7c068b54a434c5 (diff) | |
| parent | fb20768fa881841d3f80d12a276a9445feb6f514 (diff) | |
Merge branch 'dujinkim' of https://github.com/DTS-Development/SHI_EVCP into dujinkim
Diffstat (limited to 'app')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(system)/email-template/[slug]/page.tsx | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/app/[lng]/evcp/(evcp)/(system)/email-template/[slug]/page.tsx b/app/[lng]/evcp/(evcp)/(system)/email-template/[slug]/page.tsx index 2654489f..d081b69a 100644 --- a/app/[lng]/evcp/(evcp)/(system)/email-template/[slug]/page.tsx +++ b/app/[lng]/evcp/(evcp)/(system)/email-template/[slug]/page.tsx @@ -1,38 +1,44 @@ -import * as React from "react"
-import { type Metadata } from "next"
-import { notFound } from "next/navigation"
+/* IMPORT */
+import { getTemplateAction } from '@/lib/email-template/service';
+import { notFound } from 'next/navigation';
+import { TemplateEditor } from '@/lib/email-template/editor/template-editor';
+import { type Metadata } from 'next';
-import { getTemplateAction } from "@/lib/email-template/service"
-import { TemplateEditor } from "@/lib/email-template/editor/template-editor"
+// ----------------------------------------------------------------------------------------------------
+/* TYPES */
interface TemplateDetailPageProps {
params: Promise<{
- slug: string
- }>
+ slug: string;
+ }>;
}
+// ----------------------------------------------------------------------------------------------------
+
export async function generateMetadata({ params }: TemplateDetailPageProps): Promise<Metadata> {
- const { slug } = await params
- const result = await getTemplateAction(slug)
+ const { slug } = await params;
+ const result = await getTemplateAction(slug);
if (!result.success || !result.data) {
return {
- title: "템플릿을 찾을 수 없음",
- }
+ title: '템플릿을 찾을 수 없음',
+ };
}
return {
title: `${result.data.name} - 템플릿 편집`,
description: result.data.description || `${result.data.name} 템플릿을 편집합니다.`,
- }
+ };
}
+// ----------------------------------------------------------------------------------------------------
+
export default async function TemplateDetailPage({ params }: TemplateDetailPageProps) {
- const { slug } = await params
- const result = await getTemplateAction(slug)
+ const { slug } = await params;
+ const result = await getTemplateAction(slug);
if (!result.success || !result.data) {
- notFound()
+ notFound();
}
return (
@@ -42,5 +48,5 @@ export default async function TemplateDetailPage({ params }: TemplateDetailPageP initialTemplate={result.data}
/>
</div>
- )
-}
\ No newline at end of file + );
+}
|
