fix: add eslint-plugin-sonarjs and rules (#2767)

(cherry picked from commit 3996955e3b)
This commit is contained in:
LongYinan
2023-06-14 10:45:14 +08:00
committed by Alex Yang
parent ef7fd194c4
commit c8a1391dd8
8 changed files with 50 additions and 35 deletions
+4 -9
View File
@@ -80,15 +80,10 @@ export function WorkspaceHeader({
{t['Workspace Settings']()}
</WorkspaceTitle>
);
} else if (currentEntry.subPath === WorkspaceSubPath.SHARED) {
return (
<WorkspaceModeFilterTab
workspace={currentWorkspace}
currentPage={null}
isPublic={false}
/>
);
} else if (currentEntry.subPath === WorkspaceSubPath.TRASH) {
} else if (
currentEntry.subPath === WorkspaceSubPath.SHARED ||
currentEntry.subPath === WorkspaceSubPath.TRASH
) {
return (
<WorkspaceModeFilterTab
workspace={currentWorkspace}