feat(FinancialReports): add loading progress bar.

fix(preformance): Optimize preformance of virtualized list.
fix(preformance): Optimize financial reports preformance.
This commit is contained in:
a.bouhuolia
2021-03-16 17:27:27 +02:00
parent f1cf02c9df
commit 42230fe64b
73 changed files with 969 additions and 320 deletions

View File

@@ -5,6 +5,9 @@ import { compose } from 'utils';
import withAuthentication from 'containers/Authentication/withAuthentication';
import withOrganization from 'containers/Organization/withOrganization';
/**
* Ensures organization is not ready.
*/
function EnsureOrganizationIsNotReady({
children,

View File

@@ -11,11 +11,7 @@ export default function PrivateRoute({ component: Component, ...rest }) {
{isAuthenticated ? (
<Component />
) : (
<Redirect
to={{
pathname: '/auth/login',
}}
/>
<Redirect to={{ pathname: '/auth/login' }} />
)}
</BodyClassName>
);