Skip to content

Commit 125ffd1

Browse files
fix: remove design system provider
1 parent 47c872e commit 125ffd1

4 files changed

Lines changed: 9 additions & 19 deletions

File tree

admin/src/pages/HomePage/components/NavigationItemListItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ItemCardBadge } from './ItemCardBadge';
2323
import { ItemCardHeader } from './ItemCardHeader';
2424
import { ItemCardRemovedOverlay } from './ItemCardRemovedOverlay';
2525
import Wrapper from './Wrapper';
26-
import { useIsDesktop, useIsMobile, useIsTablet, useMediaQuery } from '@strapi/strapi/admin';
26+
import { useIsMobile } from '@strapi/strapi/admin';
2727

2828
export type OnItemReorderEffect = Effect<{
2929
item: NavigationItemFormSchema;

admin/src/pages/HomePage/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import { ManageNavigationItems } from './components/NavigationContentHeader/Mana
2929
import { NavigationEmptyState } from './components/NavigationEmptyState';
3030
import { appendViewId } from './utils/appendViewId';
3131
import { type NavigationItemFormSchema } from './components/NavigationItemForm';
32-
import { usePluginTheme } from '@sensinum/strapi-utils';
33-
import { DesignSystemProvider } from '@strapi/design-system';
3432

3533
const queryClient = new QueryClient();
3634

@@ -259,13 +257,9 @@ const Inner = () => {
259257
};
260258

261259
export default function HomePage() {
262-
const theme = usePluginTheme();
263-
264260
return (
265261
<QueryClientProvider client={queryClient}>
266-
<DesignSystemProvider theme={theme}>
267-
<Inner />
268-
</DesignSystemProvider>
262+
<Inner />
269263
</QueryClientProvider>
270264
);
271265
}

admin/src/pages/SettingsPage/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { usePluginTheme } from '@sensinum/strapi-utils';
21
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
32
import { get, isNil, isObject, isString, set } from 'lodash';
43
import { useMemo, useState } from 'react';
54
import { useIntl } from 'react-intl';
65

7-
import { Button, DesignSystemProvider, Flex } from '@strapi/design-system';
6+
import { Button, Flex } from '@strapi/design-system';
87

98
import { Check } from '@strapi/icons';
109
import { Form, Layouts, Page, useAuth } from '@strapi/strapi/admin';
@@ -192,13 +191,10 @@ const Inner = () => {
192191

193192
export default function SettingsPage() {
194193
queryClient.invalidateQueries();
195-
const theme = usePluginTheme();
196194

197195
return (
198196
<QueryClientProvider client={queryClient}>
199-
<DesignSystemProvider theme={theme}>
200-
<Inner />
201-
</DesignSystemProvider>
197+
<Inner />
202198
</QueryClientProvider>
203199
);
204200
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-navigation",
3-
"version": "3.3.2",
3+
"version": "3.3.3-beta.2",
44
"description": "Strapi - Navigation plugin",
55
"strapi": {
66
"name": "navigation",
@@ -60,11 +60,11 @@
6060
"@jest/types": "29.5.x",
6161
"@koa/router": "^12.0.1",
6262
"@strapi-community/plugin-rest-cache": "^5.0.1",
63-
"@strapi/plugin-graphql": "^5.33.4",
63+
"@strapi/plugin-graphql": "^5.37.0",
6464
"@strapi/sdk-plugin": "^5.3.2",
65-
"@strapi/strapi": "^5.33.4",
66-
"@strapi/types": "^5.33.4",
67-
"@strapi/typescript-utils": "^5.33.4",
65+
"@strapi/strapi": "^5.37.0",
66+
"@strapi/types": "^5.37.0",
67+
"@strapi/typescript-utils": "^5.37.0",
6868
"@types/jest": "^29.5.12",
6969
"@types/koa": "^2.15.0",
7070
"@types/koa-bodyparser": "^4.3.12",

0 commit comments

Comments
 (0)