overleaf/services/web/frontend/js/features/editor-navigation-toolbar/components/back-to-projects-button.js
Alf Eaton fcdd02fac1 Merge pull request #7849 from overleaf/ae-menu-bar
Change "back to your projects" icon to "home"

GitOrigin-RevId: 2620b7efbaa5af38af365596c008b79961b00247
2022-05-10 08:03:48 +00:00

24 lines
639 B
JavaScript

import Icon from '../../../shared/components/icon'
import { useTranslation } from 'react-i18next'
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
function BackToProjectsButton() {
const { t } = useTranslation()
return (
<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>
)
}
export default BackToProjectsButton