feat: frontend status toast overlay, while refactoring document store usage.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { useMemo } from 'react';
|
||||
import type { DragEvent } from 'react';
|
||||
import { TAG_FILTER_UNTAGGED } from '../app/workspaceUtils';
|
||||
import type { StatusMessage } from '../hooks/documents/store/useDocumentsStore';
|
||||
import type { Identifier } from '../types/identifiers';
|
||||
|
||||
interface FolderTreeNode {
|
||||
@@ -89,7 +88,6 @@ interface UseSidebarPropsArgs {
|
||||
appStatus: string;
|
||||
previewActive: boolean;
|
||||
handleLogout: () => void | Promise<void>;
|
||||
status: StatusMessage | null;
|
||||
tenantName: string | null;
|
||||
tenantOptions: TenantOption[];
|
||||
currentTenantId: Identifier | null;
|
||||
@@ -119,10 +117,8 @@ interface SidebarHookResult {
|
||||
onCreateTag: (label: string) => void;
|
||||
correspondents: CorrespondentOption[];
|
||||
onCreateCorrespondent: (name: string) => void;
|
||||
appStatus: string;
|
||||
previewActive: boolean;
|
||||
onLogout: UseSidebarPropsArgs['handleLogout'];
|
||||
status: StatusMessage | null;
|
||||
tenantName: string | null;
|
||||
tenants: TenantOption[];
|
||||
activeTenantId: Identifier | null;
|
||||
@@ -150,7 +146,6 @@ const useSidebarProps = ({
|
||||
appStatus,
|
||||
previewActive,
|
||||
handleLogout,
|
||||
status,
|
||||
tenantName,
|
||||
tenantOptions,
|
||||
currentTenantId,
|
||||
@@ -183,7 +178,6 @@ const useSidebarProps = ({
|
||||
appStatus,
|
||||
previewActive,
|
||||
onLogout: handleLogout,
|
||||
status,
|
||||
tenantName,
|
||||
tenants: tenantOptions,
|
||||
activeTenantId: currentTenantId,
|
||||
@@ -227,7 +221,6 @@ const useSidebarProps = ({
|
||||
previewActive,
|
||||
draggedFolderId,
|
||||
selectedFolder,
|
||||
status,
|
||||
tags,
|
||||
tenantName,
|
||||
tenantOptions,
|
||||
|
||||
Reference in New Issue
Block a user