add permisson for create admin block
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { QueryClient } from '@tanstack/react-query';
|
||||
import { fetchTokensGeneralStatistic, fetchProtectedContentGeneralStatistic, fetchTariffStatistic, fetchUserFilesTopStatistic, fetchUserGeneralStatistic, fetchViolationGeneralStatistic } from '@/app/actions/statisticActions';
|
||||
import { useSubscribeGeneralStatistic } from '@/app/hooks/react-query/dashboard/useSubscribeGeneralStatistic';
|
||||
import { fetchEmployeInfo } from '@/app/actions/stuffActions';
|
||||
|
||||
export async function prefetchLayoutQueries(queryClient: QueryClient) {
|
||||
await Promise.all([
|
||||
queryClient.prefetchQuery({
|
||||
queryKey: ['fetchEmployeInfo'],
|
||||
queryFn: () => fetchEmployeInfo()
|
||||
}),
|
||||
queryClient.prefetchQuery({
|
||||
queryKey: ['incomeGeneralStatistic'],
|
||||
queryFn: () => fetchTokensGeneralStatistic()
|
||||
|
||||
Reference in New Issue
Block a user