@@ -14,9 +14,9 @@ import { useNavigate } from 'react-router-dom';
14
14
import { useUser } from '../../store/selectors' ;
15
15
import { useTranslation } from 'react-i18next' ;
16
16
import { signInWithRedirect } from 'aws-amplify/auth' ;
17
- import WarningBanner from '../warning-banner/WarningBanner' ;
18
- import { UserRole } from '../../pages/users/enums/UserRole.enum' ;
19
- import { useOrganizationReportsStatus } from '../../services/organization/Organization.queries' ;
17
+ // import WarningBanner from '../warning-banner/WarningBanner';
18
+ // import { UserRole } from '../../pages/users/enums/UserRole.enum';
19
+ // import { useOrganizationReportsStatus } from '../../services/organization/Organization.queries';
20
20
21
21
interface HeaderProps {
22
22
openSlidingMenu ?: any ;
@@ -28,7 +28,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
28
28
const navigate = useNavigate ( ) ;
29
29
const { profile } = useUser ( ) ;
30
30
31
- const { data : reportsStatus } = useOrganizationReportsStatus ( profile ?. role === UserRole . ADMIN ) ;
31
+ // const { data: reportsStatus } = useOrganizationReportsStatus(profile?.role === UserRole.ADMIN);
32
32
33
33
const { t } = useTranslation ( [ 'header' , 'dashboard' ] ) ;
34
34
@@ -138,7 +138,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
138
138
) }
139
139
</ div >
140
140
</ nav >
141
- { reportsStatus && reportsStatus . numberOfErroredFinancialReports > 0 && (
141
+ { /* { reportsStatus && reportsStatus.numberOfErroredFinancialReports > 0 && (
142
142
<WarningBanner
143
143
text={t('statistics.financial_reports.not_updated', { ns: 'dashboard' }) }
144
144
actionText={t('statistics.financial_reports.please_update', { ns: 'dashboard' })}
@@ -151,7 +151,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
151
151
actionText={t('statistics.organization_reports.please_update', { ns: 'dashboard' })}
152
152
actionLink="/organization/data"
153
153
/>
154
- ) }
154
+ )} */ }
155
155
</ header >
156
156
</ >
157
157
) ;
0 commit comments