Skip to content

Commit

Permalink
fix: Remove multiselect until errors fixed (#2530)
Browse files Browse the repository at this point in the history
* Removed for now till fixed

* fmt

---------

Co-authored-by: Andreas Thomas <[email protected]>
  • Loading branch information
MichaelUnkey and chronark authored Nov 13, 2024
1 parent 13f1153 commit b174401
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { Loading } from "@/components/dashboard/loading";
import { MultiSelect } from "@/components/multi-select";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";

Expand Down Expand Up @@ -105,7 +104,6 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
<DialogTitle>Create a new role</DialogTitle>
<DialogDescription>Roles group permissions together.</DialogDescription>
</DialogHeader>

<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col gap-8">
<FormField
Expand Down Expand Up @@ -147,7 +145,8 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
</FormItem>
)}
/>
{permissions && permissions.length > 0 ? (
{/* Broken Have to link permissions on next page after creation */}
{/*{permissions && permissions.length > 0 ? (
<FormField
control={form.control}
name="permissionOptions"
Expand Down Expand Up @@ -176,7 +175,7 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
</FormItem>
)}
/>
) : null}
) : null}*/}
<DialogFooter>
<Button type="submit">
{createRole.isLoading ? <Loading className="w-4 h-4" /> : "Create"}
Expand Down

0 comments on commit b174401

Please sign in to comment.