mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
37d45d64b3
* Created ng-controller for react shared context and set editor.loading * toolbar-header component with menu button (and story) * Added editor-navigation-toolbar-root and react2angular plumbing * Added eslint-disable exception to use <a/> instead of <button/> * added 'menu' to extracted translation * [ReactNavToolbar] Added cobranding and back to projects buttons (#3515) GitOrigin-RevId: 27c3bba85cbc96a123d58c66a0bd5d6a2cfd8aca
18 lines
443 B
JavaScript
18 lines
443 B
JavaScript
import React from 'react'
|
|
import Icon from '../../../shared/components/icon'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
function BackToProjectsButton() {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<a className="toolbar-header-back-projects" href="/project">
|
|
<Icon
|
|
type="fw"
|
|
modifier="level-up"
|
|
accessibilityLabel={t('back_to_your_projects')}
|
|
/>
|
|
</a>
|
|
)
|
|
}
|
|
|
|
export default BackToProjectsButton
|