mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 17:11:42 -05:00
affe266609
[web] Use real button for Menu button in navbar GitOrigin-RevId: c1b85c366046774aa638801647cb61eba0de7098
26 lines
614 B
JavaScript
26 lines
614 B
JavaScript
import PropTypes from 'prop-types'
|
|
import { useTranslation } from 'react-i18next'
|
|
import Icon from '../../../shared/components/icon'
|
|
|
|
function MenuButton({ onClick }) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className="toolbar-item">
|
|
<button className="btn btn-full-height" onClick={onClick}>
|
|
<Icon
|
|
type="bars "
|
|
modifier="fw"
|
|
classes={{ icon: 'editor-menu-icon' }}
|
|
/>
|
|
<p className="toolbar-label">{t('menu')}</p>
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
MenuButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired,
|
|
}
|
|
|
|
export default MenuButton
|