feature: add org role duplication

This commit is contained in:
Scott Wilson
2025-05-09 14:29:18 -07:00
parent 44c7be54cf
commit aa68a3ef58
8 changed files with 214 additions and 15 deletions
@@ -13,7 +13,7 @@ import { slugSchema } from "@app/lib/schemas";
const schema = z
.object({
name: z.string(),
name: z.string().min(1, "Name required"),
description: z.string(),
slug: slugSchema({ min: 1 })
})
@@ -71,12 +71,6 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {
const onFormSubmit = async ({ name, description, slug }: FormData) => {
try {
console.log("onFormSubmit args: ", {
name,
description,
slug
});
if (!orgId) return;
if (role) {