mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 09:53:13 +00:00
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:
parent
1cf9666df5
commit
fcdd02fac1
1 changed files with 14 additions and 7 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue