summaryrefslogtreecommitdiff
path: root/components/form-data/form-data-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/form-data/form-data-table.tsx')
-rw-r--r--components/form-data/form-data-table.tsx24
1 files changed, 21 insertions, 3 deletions
diff --git a/components/form-data/form-data-table.tsx b/components/form-data/form-data-table.tsx
index 58cd1933..70e93a68 100644
--- a/components/form-data/form-data-table.tsx
+++ b/components/form-data/form-data-table.tsx
@@ -1,7 +1,7 @@
"use client";
import * as React from "react";
-import { useParams, useRouter, usePathname } from "next/navigation";
+import { useParams, useRouter } from "next/navigation";
import { useTranslation } from "@/i18n/client";
import { ClientDataTable } from "../client-data-table/data-table";
@@ -28,10 +28,10 @@ import {
Trash2,
Eye,
FileText,
- Target,
CheckCircle2,
AlertCircle,
- Clock
+ Clock,
+ BookOpen
} from "lucide-react";
import { toast } from "sonner";
import {
@@ -52,6 +52,7 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { AddFormTagDialog } from "./add-formTag-dialog";
+import { GuideDialog } from "./guide-dialog";
import { importExcelData } from "./import-excel-form";
import { exportExcelData } from "./export-excel-form";
import { SEDPConfirmationDialog, SEDPStatusDialog } from "./sedp-components";
@@ -280,6 +281,7 @@ export default function DynamicTable({
const [batchDownDialog, setBatchDownDialog] = React.useState(false);
const [tempCount, setTempCount] = React.useState(0);
const [addTagDialogOpen, setAddTagDialogOpen] = React.useState(false);
+ const [guideDialogOpen, setGuideDialogOpen] = React.useState(false);
// TAG_NO가 있는 첫 번째 행의 shi 값 확인
const isAddTagDisabled = React.useMemo(() => {
@@ -1010,6 +1012,16 @@ export default function DynamicTable({
</DropdownMenuContent>
</DropdownMenu>
+ {/* Guide 버튼 */}
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => setGuideDialogOpen(true)}
+ >
+ <BookOpen className="mr-2 size-4" />
+ Guide
+ </Button>
+
{/* 리포트 관리 드롭다운 */}
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -1273,6 +1285,12 @@ export default function DynamicTable({
formId={formId}
/>
)}
+
+ {/* Guide Dialog */}
+ <GuideDialog
+ open={guideDialogOpen}
+ onOpenChange={setGuideDialogOpen}
+ />
</>
);
} \ No newline at end of file