diff --git a/components/form/approver-detail.tsx b/components/form/approver-detail.tsx index 661668f..79fe9a2 100644 --- a/components/form/approver-detail.tsx +++ b/components/form/approver-detail.tsx @@ -16,7 +16,7 @@ import { cn } from "@/lib/utils"; export default function ApproverDetail() { const [activeTab, setActiveTab] = useState<"detail" | "buatKonten">("detail"); const [step, setStep] = useState<"configuration" | "publish">( - "configuration" + "configuration", ); return ( @@ -32,7 +32,7 @@ export default function ApproverDetail() { "px-4 py-2 text-sm font-medium rounded-md transition", activeTab === "detail" ? "bg-black text-white font-semibold" - : "text-gray-600 hover:text-black" + : "text-gray-600 hover:text-black", )} > Detail Konten @@ -43,7 +43,7 @@ export default function ApproverDetail() { "px-4 py-2 text-sm font-medium rounded-md transition", activeTab === "buatKonten" ? "bg-black text-white font-semibold" - : "text-gray-600 hover:text-black" + : "text-gray-600 hover:text-black", )} > Buat Konten @@ -162,7 +162,7 @@ export default function ApproverDetail() { "w-6 h-6 rounded-full border-2 flex items-center justify-center", step === "publish" ? "bg-blue-600 border-blue-600 text-white" - : "border-blue-300 text-gray-400" + : "border-blue-300 text-gray-400", )} > {step === "publish" ? ( @@ -174,7 +174,7 @@ export default function ApproverDetail() { Publish @@ -251,6 +251,9 @@ export default function ApproverDetail() {
{/* LEFT CONTENT */}
+ ([]); + + const [description, setDescription] = useState(""); + + const handleCheckboxChange = (index: number) => { + setSelectedItems((prev) => + prev.includes(index) ? prev.filter((i) => i !== index) : [...prev, index], + ); + }; const toggleMediaOnline = (item: string) => { setSelectedMediaOnline((prev) => @@ -414,6 +423,8 @@ export default function FormCampaign() { handleCheckboxChange(i)} className="absolute top-2 left-2 w-4 h-4" /> @@ -428,6 +439,18 @@ export default function FormCampaign() {
))}
+ {selectedItems.length > 0 && ( +
+ +