@@ -14,9 +14,9 @@ import { useNavigate } from 'react-router-dom';
1414import { useUser } from '../../store/selectors' ;
1515import { useTranslation } from 'react-i18next' ;
1616import { 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';
2020
2121interface HeaderProps {
2222 openSlidingMenu ?: any ;
@@ -28,7 +28,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
2828 const navigate = useNavigate ( ) ;
2929 const { profile } = useUser ( ) ;
3030
31- const { data : reportsStatus } = useOrganizationReportsStatus ( profile ?. role === UserRole . ADMIN ) ;
31+ // const { data: reportsStatus } = useOrganizationReportsStatus(profile?.role === UserRole.ADMIN);
3232
3333 const { t } = useTranslation ( [ 'header' , 'dashboard' ] ) ;
3434
@@ -138,7 +138,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
138138 ) }
139139 </ div >
140140 </ nav >
141- { reportsStatus && reportsStatus . numberOfErroredFinancialReports > 0 && (
141+ { /* { reportsStatus && reportsStatus.numberOfErroredFinancialReports > 0 && (
142142 <WarningBanner
143143 text={t('statistics.financial_reports.not_updated', { ns: 'dashboard' }) }
144144 actionText={t('statistics.financial_reports.please_update', { ns: 'dashboard' })}
@@ -151,7 +151,7 @@ const Header = ({ openSlidingMenu, hideLogInButton }: HeaderProps) => {
151151 actionText={t('statistics.organization_reports.please_update', { ns: 'dashboard' })}
152152 actionLink="/organization/data"
153153 />
154- ) }
154+ )} */ }
155155 </ header >
156156 </ >
157157 ) ;
0 commit comments