2021-01-27 05:30:55 -05:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2022-05-18 09:46:10 -04:00
|
|
|
import Tooltip from '../../../shared/components/tooltip'
|
|
|
|
import Icon from '../../../shared/components/icon'
|
2023-08-22 09:33:19 -04:00
|
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
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-18 09:46:10 -04:00
|
|
|
<Tooltip
|
|
|
|
id="back-to-projects"
|
|
|
|
description={t('back_to_your_projects')}
|
|
|
|
overlayProps={{ placement: 'right' }}
|
2022-05-09 07:01:36 -04:00
|
|
|
>
|
2022-05-12 05:34:15 -04:00
|
|
|
<div className="toolbar-item">
|
2023-08-22 09:33:19 -04:00
|
|
|
<a
|
|
|
|
className="btn btn-full-height"
|
2023-09-12 11:30:02 -04:00
|
|
|
draggable="false"
|
2023-08-22 09:33:19 -04:00
|
|
|
href="/project"
|
|
|
|
onClick={() => {
|
|
|
|
eventTracking.sendMB('navigation-clicked-home')
|
|
|
|
}}
|
|
|
|
>
|
2022-05-12 05:34:15 -04:00
|
|
|
<Icon
|
|
|
|
type="home"
|
|
|
|
fw
|
|
|
|
accessibilityLabel={t('back_to_your_projects')}
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-05-18 09:46:10 -04:00
|
|
|
</Tooltip>
|
2021-01-27 05:30:55 -05:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BackToProjectsButton
|