fix: eslint errors and warnings (#8149)
This commit is contained in:
parent
83fdebf64d
commit
8307badae5
137 changed files with 97 additions and 216 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import type { FC } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
||||
import { draggable, dropTargetForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
|
||||
|
|
@ -62,10 +61,6 @@ export const ExtendedSidebarItem = observer(function ExtendedSidebarItem(props:
|
|||
|
||||
const handleLinkClick = () => toggleExtendedSidebar(true);
|
||||
|
||||
if (!allowPermissions(item.access as any, EUserPermissionsLevel.WORKSPACE, workspaceSlug.toString())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const itemHref =
|
||||
item.key === "your_work"
|
||||
? `/${workspaceSlug.toString()}${item.href}${data?.id}`
|
||||
|
|
@ -151,6 +146,10 @@ export const ExtendedSidebarItem = observer(function ExtendedSidebarItem(props:
|
|||
);
|
||||
}, [isLastChild, handleOnNavigationItemDrop, disableDrag, disableDrop, item.key]);
|
||||
|
||||
if (!allowPermissions(item.access as any, EUserPermissionsLevel.WORKSPACE, workspaceSlug.toString())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
id={`sidebar-${item.key}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue