diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx index 6b110329b9..c3d97ce4c1 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx @@ -7,7 +7,7 @@ export type FileHoverIconsProps = { file: any handleNewFolderOp?: any handleNewFileOp?: any - renamePathOp?: (path: string, newName: string) => void | Promise + renamePathOp?: (path: string, type: string) => void deletePathOp?: (path: string | string[]) => void | Promise } @@ -27,7 +27,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { tooltipClasses="text-nowrap" > { e.stopPropagation() await props.handleNewFolderOp(props.file.path) @@ -45,7 +45,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { tooltipClasses="text-nowrap" > { e.stopPropagation() await props.handleNewFileOp(props.file.path) @@ -66,7 +66,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { tooltipClasses="text-nowrap" > { e.stopPropagation() await props.renamePathOp(props.file.path, props.file.type) @@ -84,7 +84,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { tooltipClasses="text-nowrap" > { e.stopPropagation() await props.deletePathOp(props.file.path) diff --git a/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx b/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx index a4024efcfb..6f4acfd8b6 100644 --- a/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx +++ b/libs/remix-ui/workspace/src/lib/components/flat-tree.tsx @@ -41,7 +41,7 @@ interface FlatTreeProps { createNewFile?: any createNewFolder?: any deletePath?: (path: string | string[]) => void | Promise - renamePath?: (path: string, type: string, isNew?: boolean) => void + renamePath?: (path: string, type: string) => void editModeOn?: (path: string, type: string, isNew?: boolean) => void } diff --git a/libs/remix-ui/workspace/src/lib/css/file-explorer.css b/libs/remix-ui/workspace/src/lib/css/file-explorer.css index 57dae41eae..16f0ffca51 100644 --- a/libs/remix-ui/workspace/src/lib/css/file-explorer.css +++ b/libs/remix-ui/workspace/src/lib/css/file-explorer.css @@ -69,7 +69,3 @@ ul { .remixui_icons:hover { color: var(--text); } - -.remixui_icons_space { - margin-right: 8px; -}