removing tooltips from files/folders

pull/3590/head
lianahus 2 years ago committed by Aniket
parent 9c2eeac8e9
commit a0a98a2ce3
  1. 18
      libs/remix-ui/workspace/src/lib/components/file-label.tsx
  2. 3
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -2,7 +2,6 @@
import { fileDecoration } from '@remix-ui/file-decorators'
import React, { useEffect, useRef, useState } from 'react'
import { FileType } from '../types'
import { CustomTooltip } from '@remix-ui/helper'
export interface FileLabelProps {
file: FileType,
focusEdit: {
@ -70,19 +69,12 @@ export const FileLabel = (props: FileLabelProps) => {
onKeyDown={handleEditInput}
onBlur={handleEditBlur}
>
<CustomTooltip
placement={"right"}
tooltipClasses="text-wrap"
tooltipId={`remixFEItemTooltip${file.path}`}
tooltipText={`${file.path}`}
<span
className={`text-nowrap remixui_label ${fileStateClasses} ` + (file.isDirectory ? 'folder' : 'remixui_leaf')}
data-path={file.path}
>
<span
className={`text-nowrap remixui_label ${fileStateClasses} ` + (file.isDirectory ? 'folder' : 'remixui_leaf')}
data-path={file.path}
>
{file.name}
</span>
</CustomTooltip>
{file.name}
</span>
</div>
)
}

@ -9,9 +9,6 @@ import { FileLabel } from './file-label'
import { fileDecoration, FileDecorationIcons } from '@remix-ui/file-decorators'
import { Draggable } from "@remix-ui/drag-n-drop"
export interface RenderFileProps {
file: FileType,
index: number,

Loading…
Cancel
Save