add or update props for customTooltip

pull/4446/head
Joseph Izang 10 months ago
parent dfb2429df9
commit 38703f261b
  1. 24
      libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx

@ -20,10 +20,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
props.file.isDirectory ? ( props.file.isDirectory ? (
<> <>
<CustomTooltip <CustomTooltip
placement="right-start" placement="bottom"
delay={{show: 1000, hide: 0}} delay={{show: 1000, hide: 0}}
tooltipText={<FormattedMessage id="filePanel.edit" />} tooltipText={<FormattedMessage id="filePanel.createNewFolder" />}
tooltipId={`filePanel.edit.${props.file.path}`} tooltipId={`filePanel.createNewFolder.${props.file.path}`}
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
> >
<span <span
@ -35,10 +35,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
></span> ></span>
</CustomTooltip> </CustomTooltip>
<CustomTooltip <CustomTooltip
placement="right-start" placement="bottom"
delay={{show: 1000, hide: 0}} delay={{show: 1000, hide: 0}}
tooltipText={<FormattedMessage id="fileExplorer.edit" />} tooltipText={<FormattedMessage id="filePanel.createNewFile" />}
tooltipId={`fileExplorer.edit.${props.file.path}`} tooltipId={`fileExplorer.createNewFile.${props.file.path}`}
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
> >
<span <span
@ -53,10 +53,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
) : null ) : null
} }
<CustomTooltip <CustomTooltip
placement="right-start" placement="bottom"
delay={{show: 1000, hide: 0}} delay={{show: 1000, hide: 0}}
tooltipText={<FormattedMessage id="fileExplorer.edit" />} tooltipText={<FormattedMessage id="filePanel.rename" />}
tooltipId={`fileExplorer.edit.${props.file.path}`} tooltipId={`filePanel.rename.${props.file.path}`}
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
> >
<span <span
@ -68,10 +68,10 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
></span> ></span>
</CustomTooltip> </CustomTooltip>
<CustomTooltip <CustomTooltip
placement="right-start" placement="bottom"
delay={{show: 1000, hide: 0}} delay={{show: 1000, hide: 0}}
tooltipText={<FormattedMessage id="fileExplorer.edit" />} tooltipText={<FormattedMessage id="filePanel.deleteItem" />}
tooltipId={`fileExplorer.edit.${props.file.path}`} tooltipId={`filePanel.deleteItem.${props.file.path}`}
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
> >
<span <span

Loading…
Cancel
Save