|
|
@ -7,7 +7,7 @@ export type FileHoverIconsProps = { |
|
|
|
file: any |
|
|
|
file: any |
|
|
|
handleNewFolderOp?: any |
|
|
|
handleNewFolderOp?: any |
|
|
|
handleNewFileOp?: any |
|
|
|
handleNewFileOp?: any |
|
|
|
renamePathOp?: (path: string, newName: string) => void | Promise<void> |
|
|
|
renamePathOp?: (path: string, type: string) => void |
|
|
|
deletePathOp?: (path: string | string[]) => void | Promise<void> |
|
|
|
deletePathOp?: (path: string | string[]) => void | Promise<void> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-folder fa-1x remixui_icons_space remixui_icons" |
|
|
|
className="far fa-folder fa-1x mr-2 remixui_icons" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
await props.handleNewFolderOp(props.file.path) |
|
|
|
await props.handleNewFolderOp(props.file.path) |
|
|
@ -45,7 +45,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-file fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-file fa-1x remixui_icons mr-2" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
await props.handleNewFileOp(props.file.path) |
|
|
|
await props.handleNewFileOp(props.file.path) |
|
|
@ -66,7 +66,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-pen fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-pen fa-1x remixui_icons mr-2" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
await props.renamePathOp(props.file.path, props.file.type) |
|
|
|
await props.renamePathOp(props.file.path, props.file.type) |
|
|
@ -84,7 +84,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) { |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
> |
|
|
|
> |
|
|
|
<span |
|
|
|
<span |
|
|
|
className="far fa-trash fa-1x remixui_icons remixui_icons_space" |
|
|
|
className="far fa-trash fa-1x remixui_icons mr-2" |
|
|
|
onClick={async (e) => { |
|
|
|
onClick={async (e) => { |
|
|
|
e.stopPropagation() |
|
|
|
e.stopPropagation() |
|
|
|
await props.deletePathOp(props.file.path) |
|
|
|
await props.deletePathOp(props.file.path) |
|
|
|