Skip to content

Commit 7c7d608

Browse files
committed
2 parents e2b6cfc + b0844f7 commit 7c7d608

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/pages/_app.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import { usePathname } from "next/navigation";
3434
import { useRouter } from "next/router";
3535
import { persistQueryClient } from "@tanstack/react-query-persist-client";
3636
import { createSyncStoragePersister } from "@tanstack/query-sync-storage-persister";
37+
3738
TimeAgo.addDefaultLocale(en);
38-
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
3939

4040
const queryClient = new QueryClient();
4141
const clientSideEmotionCache = createEmotionCache();
@@ -70,7 +70,7 @@ const App = (props) => {
7070
if (!queryKey || !queryKey.length) {
7171
return false;
7272
}
73-
const queryKeyString = String(queryKey[0] || '');
73+
const queryKeyString = String(queryKey[0] || "");
7474
const excludeFromPersisting = excludeQueryKeys.some((key) =>
7575
queryKeyString.includes(key)
7676
);
@@ -132,6 +132,12 @@ const App = (props) => {
132132
},
133133
];
134134

135+
const ReactQueryDevtoolsProduction = React.lazy(() =>
136+
import("@tanstack/react-query-devtools/build/modern/production.js").then((d) => ({
137+
default: d.ReactQueryDevtools,
138+
}))
139+
);
140+
135141
return (
136142
<CacheProvider value={emotionCache}>
137143
<Head>
@@ -178,7 +184,7 @@ const App = (props) => {
178184
</ThemeProvider>
179185
{settings.isInitialized && settings?.showDevtools === true ? (
180186
<React.Suspense fallback={null}>
181-
<ReactQueryDevtools />
187+
<ReactQueryDevtoolsProduction />
182188
</React.Suspense>
183189
) : null}
184190
</>

src/pages/cipp/super-admin/cipp-roles/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ const Page = () => {
1212
<CardContent>
1313
<Stack spacing={2}>
1414
<Typography variant="body2">
15-
CIPP roles can be used to restrict permissions for users with the 'editor' or
16-
'readonly' roles in CIPP. They can be limited to a subset of tenants and API
17-
permissions. To restrict direct API access, create a role with the name 'CIPP-API'.
15+
CIPP roles can be used to restrict permissions for users with the 'editor' or 'readonly'
16+
roles in CIPP. They can be limited to a subset of tenants and API permissions. To
17+
restrict direct API access, create a role with the name 'CIPP-API'.
1818
</Typography>
19-
<Alert color="warning" icon={<WarningAmberOutlined />}>
20-
This functionality is in beta and should be treated as such. The custom role must be
21-
added to the user in SWA in conjunction with the base role. (e.g. editor,mycustomrole)
22-
</Alert>
2319
<CippRoles />
2420
</Stack>
2521
</CardContent>

0 commit comments

Comments
 (0)