2021-01-27 05:30:55 -05:00
|
|
|
import Icon from '../../../shared/components/icon'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
2022-05-09 07:01:36 -04:00
|
|
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap'
|
2021-01-27 05:30:55 -05:00
|
|
|
|
|
|
|
function BackToProjectsButton() {
|
|
|
|
const { t } = useTranslation()
|
2022-05-09 07:01:36 -04:00
|
|
|
|
2021-01-27 05:30:55 -05:00
|
|
|
return (
|
2022-05-09 07:01:36 -04:00
|
|
|
<OverlayTrigger
|
|
|
|
placement="right"
|
|
|
|
overlay={
|
|
|
|
<Tooltip id="back-to-projects-tooltip">
|
|
|
|
{t('back_to_your_projects')}
|
|
|
|
</Tooltip>
|
|
|
|
}
|
|
|
|
>
|
2022-05-12 05:34:15 -04:00
|
|
|
<div className="toolbar-item">
|
|
|
|
<a className="btn btn-full-height" href="/project">
|
|
|
|
<Icon
|
|
|
|
type="home"
|
|
|
|
fw
|
|
|
|
accessibilityLabel={t('back_to_your_projects')}
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-05-09 07:01:36 -04:00
|
|
|
</OverlayTrigger>
|
2021-01-27 05:30:55 -05:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BackToProjectsButton
|