2021-01-27 05:30:55 -05:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2022-05-18 09:46:10 -04:00
|
|
|
import Icon from '../../../shared/components/icon'
|
2023-08-22 09:33:19 -04:00
|
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
2024-09-04 03:52:08 -04:00
|
|
|
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
|
|
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
|
|
import MaterialIcon from '@/shared/components/material-icon'
|
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 (
|
2024-09-04 03:52:08 -04:00
|
|
|
<OLTooltip
|
2022-05-18 09:46:10 -04:00
|
|
|
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')
|
|
|
|
}}
|
|
|
|
>
|
2024-09-04 03:52:08 -04:00
|
|
|
<BootstrapVersionSwitcher
|
|
|
|
bs3={
|
|
|
|
<Icon
|
|
|
|
type="home"
|
|
|
|
fw
|
|
|
|
accessibilityLabel={t('back_to_your_projects')}
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
bs5={
|
|
|
|
<MaterialIcon
|
|
|
|
type="home"
|
|
|
|
className="align-text-bottom"
|
|
|
|
accessibilityLabel={t('back_to_your_projects')}
|
|
|
|
/>
|
|
|
|
}
|
2022-05-12 05:34:15 -04:00
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-09-04 03:52:08 -04:00
|
|
|
</OLTooltip>
|
2021-01-27 05:30:55 -05:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BackToProjectsButton
|