|
|
@@ -1,8 +1,7 @@
|
|
|
import React, { useState, useEffect } from 'react'
|
|
|
import PropTypes from 'prop-types'
|
|
|
-import { OverlayTrigger, Tooltip } from 'react-bootstrap'
|
|
|
import classNames from 'classnames'
|
|
|
-import { useTranslation, Trans } from 'react-i18next'
|
|
|
+import { useTranslation } from 'react-i18next'
|
|
|
|
|
|
import OutlineRoot from './outline-root'
|
|
|
import Icon from '../../../shared/components/icon'
|
|
|
@@ -46,17 +45,6 @@ function OutlinePane({
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- const infoContent = (
|
|
|
- <>
|
|
|
- <Trans
|
|
|
- i18nKey="the_file_outline_is_a_new_feature_click_the_icon_to_learn_more"
|
|
|
- components={[<strong />]}
|
|
|
- />
|
|
|
- .
|
|
|
- </>
|
|
|
- )
|
|
|
- const tooltip = <Tooltip id="outline-info-tooltip">{infoContent}</Tooltip>
|
|
|
-
|
|
|
return (
|
|
|
<div className={headerClasses}>
|
|
|
<header className="outline-header">
|
|
|
@@ -71,19 +59,6 @@ function OutlinePane({
|
|
|
classes={{ icon: 'outline-caret-icon' }}
|
|
|
/>
|
|
|
<h4 className="outline-header-name">{t('file_outline')}</h4>
|
|
|
- {expanded ? (
|
|
|
- <OverlayTrigger placement="top" overlay={tooltip} delayHide={100}>
|
|
|
- <a
|
|
|
- href="/learn/how-to/Using_the_File_Outline_in_Overleaf"
|
|
|
- target="_blank"
|
|
|
- rel="noopener noreferrer"
|
|
|
- className="outline-header-info-badge"
|
|
|
- onClick={ev => ev.stopPropagation()}
|
|
|
- >
|
|
|
- <span className="sr-only">{infoContent}</span>
|
|
|
- </a>
|
|
|
- </OverlayTrigger>
|
|
|
- ) : null}
|
|
|
</button>
|
|
|
</header>
|
|
|
{expanded && isTexFile ? (
|