Merge pull request #7849 from overleaf/ae-menu-bar

Change "back to your projects" icon to "home"

GitOrigin-RevId: 2620b7efbaa5af38af365596c008b79961b00247
This commit is contained in:
Alf Eaton 2022-05-09 12:01:36 +01:00 committed by Copybot
parent 1cf9666df5
commit fcdd02fac1

View file

@ -1,16 +1,23 @@
import Icon from '../../../shared/components/icon'
import { useTranslation } from 'react-i18next'
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
function BackToProjectsButton() {
const { t } = useTranslation()
return (
<a className="toolbar-header-back-projects" href="/project">
<Icon
type="level-up"
fw
accessibilityLabel={t('back_to_your_projects')}
/>
</a>
<OverlayTrigger
placement="right"
overlay={
<Tooltip id="back-to-projects-tooltip">
{t('back_to_your_projects')}
</Tooltip>
}
>
<a className="toolbar-header-back-projects" href="/project">
<Icon type="home" fw accessibilityLabel={t('back_to_your_projects')} />
</a>
</OverlayTrigger>
)
}