Simplifying TopBar component

This commit is contained in:
Jesús Espino 2021-03-26 15:49:59 +01:00
parent f470777e27
commit 1525a7d9cd

View file

@ -2,32 +2,24 @@
// See LICENSE.txt for license information.
import React from 'react'
import {injectIntl, IntlShape} from 'react-intl'
import './topBar.scss'
import HelpIcon from '../widgets/icons/help'
// See LICENSE.txt for license information.
type Props = {
intl: IntlShape
}
class TopBar extends React.PureComponent<Props> {
render(): JSX.Element {
return (
<div
className='TopBar'
const TopBar = React.memo((): JSX.Element => {
return (
<div
className='TopBar'
>
<a
href='https://www.focalboard.com/guide/user?utm_source=webapp'
target='_blank'
rel='noreferrer'
>
<a
href='https://www.focalboard.com/guide/user?utm_source=webapp'
target='_blank'
rel='noreferrer'
>
<HelpIcon/>
</a>
</div>
)
}
}
<HelpIcon/>
</a>
</div>
)
})
export default injectIntl(TopBar)
export default TopBar