Skip to content

Commit b88abfb

Browse files
committed
refactor(controls): remove commented-out code for Edit and Delete Control Dialogs in ControlDetailsClientPage for cleaner codebase
1 parent 05da639 commit b88abfb

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

apps/framework-editor/app/(pages)/controls/[controlId]/ControlDetailsClientPage.tsx

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -304,33 +304,6 @@ export function ControlDetailsClientPage({ controlDetails }: ControlDetailsClien
304304
renderItemDisplay={renderTaskTemplateDisplay}
305305
/>
306306
)}
307-
308-
{/* Placeholder for Edit Control Dialog */}
309-
{/* isEditDialogOpen && (
310-
<EditControlDialog
311-
isOpen={isEditDialogOpen}
312-
onOpenChange={setIsEditDialogOpen}
313-
control={controlDetails} // This would be the full control object
314-
onControlUpdated={handleControlUpdated}
315-
/>
316-
) */}
317-
318-
{/* Placeholder for Delete Control Dialog */}
319-
{/* isDeleteDialogOpen && (
320-
<DeleteControlDialog
321-
isOpen={isDeleteDialogOpen}
322-
onOpenChange={setIsDeleteDialogOpen}
323-
controlId={controlDetails.id}
324-
controlName={controlDetails.name}
325-
onControlDeleted={handleControlDeleted}
326-
/>
327-
) */}
328-
329-
{/* If controls have sub-items to list (e.g., related policies, tasks), a DataTable could go here */}
330-
{/* For example:
331-
<h2 className="text-xl font-semibold mt-8 mb-4">Related Items</h2>
332-
<DataTable data={relatedItems} columns={relatedItemsColumns} ... />
333-
*/}
334307
</PageLayout>
335308
);
336309
}

0 commit comments

Comments
 (0)