mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix(preformance): Optimize preformance of virtualized list. fix(preformance): Optimize financial reports preformance.
17 lines
494 B
JavaScript
17 lines
494 B
JavaScript
import React from 'react';
|
|
import DashboardLoadingIndicator from 'components/Dashboard/DashboardLoadingIndicator';
|
|
import { useCurrentOrganization } from '../../hooks/query/organization';
|
|
|
|
/**
|
|
* Private pages provider.
|
|
*/
|
|
export function PrivatePagesProvider({ children }) {
|
|
// Fetches the current user's organization.
|
|
const { isLoading } = useCurrentOrganization();
|
|
|
|
return (
|
|
<DashboardLoadingIndicator isLoading={isLoading}>
|
|
{children}
|
|
</DashboardLoadingIndicator>
|
|
)
|
|
} |