mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01: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:
+14
-7
@@ -1,16 +1,23 @@
|
|||||||
import Icon from '../../../shared/components/icon'
|
import Icon from '../../../shared/components/icon'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
|
||||||
|
|
||||||
function BackToProjectsButton() {
|
function BackToProjectsButton() {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a className="toolbar-header-back-projects" href="/project">
|
<OverlayTrigger
|
||||||
<Icon
|
placement="right"
|
||||||
type="level-up"
|
overlay={
|
||||||
fw
|
<Tooltip id="back-to-projects-tooltip">
|
||||||
accessibilityLabel={t('back_to_your_projects')}
|
{t('back_to_your_projects')}
|
||||||
/>
|
</Tooltip>
|
||||||
</a>
|
}
|
||||||
|
>
|
||||||
|
<a className="toolbar-header-back-projects" href="/project">
|
||||||
|
<Icon type="home" fw accessibilityLabel={t('back_to_your_projects')} />
|
||||||
|
</a>
|
||||||
|
</OverlayTrigger>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user