dcce5d1eec
- Eliminated useModernView state and all related switching logic - Removed overlapping view toggle buttons that interfered with UI - FileManager now directly renders FileManagerModern component - Significantly reduced bundle size from 3MB to 1.4MB - Modern file manager is now the only interface with full features: * Grid and list view modes * SSH connection management * Drag-and-drop uploads * Context menus and file operations * Navigation history The legacy view is no longer needed as the modern view provides all functionality with better UX and performance.
20 lines
489 B
TypeScript
20 lines
489 B
TypeScript
import React from "react";
|
|
import { FileManagerModern } from "@/ui/Desktop/Apps/File Manager/FileManagerModern.tsx";
|
|
import type { SSHHost } from "../../../types/index.js";
|
|
|
|
export function FileManager({
|
|
initialHost = null,
|
|
onClose,
|
|
}: {
|
|
onSelectView?: (view: string) => void;
|
|
embedded?: boolean;
|
|
initialHost?: SSHHost | null;
|
|
onClose?: () => void;
|
|
}): React.ReactElement {
|
|
return (
|
|
<FileManagerModern
|
|
initialHost={initialHost}
|
|
onClose={onClose}
|
|
/>
|
|
);
|
|
} |