Getting organization by slug, adding this in url. And working on permissions.

This commit is contained in:
charles-gauthereau
2024-12-30 12:28:11 +01:00
parent a6f48ea762
commit 379271501d
21 changed files with 76 additions and 58 deletions
@@ -80,7 +80,12 @@ export function CreateOrganizationModal(props: createOrganizationModalProps) {
<FormItem>
<FormLabel>Slug</FormLabel>
<FormControl>
<Input {...field} />
<Input {...field}
onChange={(e) => {
const value = e.target.value.replaceAll(" ", "-").toLowerCase()
field.onChange(value)
}}
/>
</FormControl>
<FormMessage/>
</FormItem>