From 1525a7d9cd724b06953ef01174f1183fe7b1bb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Fri, 26 Mar 2021 15:49:59 +0100 Subject: [PATCH] Simplifying TopBar component --- webapp/src/components/topBar.tsx | 38 +++++++++++++------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/webapp/src/components/topBar.tsx b/webapp/src/components/topBar.tsx index 555b6e388..a0eb03c67 100644 --- a/webapp/src/components/topBar.tsx +++ b/webapp/src/components/topBar.tsx @@ -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 { - render(): JSX.Element { - return ( -
{ + return ( +
+ - - - -
- ) - } -} + + +
+ ) +}) -export default injectIntl(TopBar) +export default TopBar