Allow default users to reorder workspaces (#4292)
* allow default users to reorder workspaces * unneeded prop --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
a4a84f9bdd
commit
b44cf21caa
@ -89,7 +89,6 @@ export default function ActiveWorkspaces() {
|
||||
key={workspace.id}
|
||||
draggableId={workspace.id.toString()}
|
||||
index={index}
|
||||
isDragDisabled={user?.role === "default"}
|
||||
>
|
||||
{(provided, snapshot) => (
|
||||
<div
|
||||
@ -117,18 +116,16 @@ export default function ActiveWorkspaces() {
|
||||
`}
|
||||
>
|
||||
<div className="flex flex-row justify-between w-full items-center">
|
||||
{user?.role !== "default" && (
|
||||
<div
|
||||
{...provided.dragHandleProps}
|
||||
className="cursor-grab mr-[3px]"
|
||||
>
|
||||
<DotsSixVertical
|
||||
size={20}
|
||||
color="var(--theme-sidebar-item-workspace-active)"
|
||||
weight="bold"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
{...provided.dragHandleProps}
|
||||
className="cursor-grab mr-[3px]"
|
||||
>
|
||||
<DotsSixVertical
|
||||
size={20}
|
||||
color="var(--theme-sidebar-item-workspace-active)"
|
||||
weight="bold"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex items-center space-x-2 overflow-hidden flex-grow">
|
||||
<div className="w-[130px] overflow-hidden">
|
||||
<p
|
||||
|
||||
Loading…
Reference in New Issue
Block a user