mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-31 15:54:24 +00:00
feat: edit role feature
This commit is contained in:
10 files changed
+537
-176
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import React from "react";
|
||||
|
||||
import { EditRoleForm } from "@/components/roles/workflow/forms/edit-role-form";
|
||||
import { SearchParamsProps } from "@/types";
|
||||
|
||||
export default function EditRolePage({
|
||||
searchParams,
|
||||
}: {
|
||||
searchParams: SearchParamsProps;
|
||||
}) {
|
||||
if (!searchParams.roleId || Array.isArray(searchParams.roleId)) {
|
||||
redirect("/roles");
|
||||
}
|
||||
|
||||
return <EditRoleForm roleId={searchParams.roleId} />;
|
||||
}
|
||||
Reference in new issue
Block a user