mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fcdd02fac1
Change "back to your projects" icon to "home" GitOrigin-RevId: 2620b7efbaa5af38af365596c008b79961b00247
24 lines
639 B
JavaScript
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
|