diff --git a/packages/shared/package.json b/packages/shared/package.json index 5c18442672cd..6d0dd1af6d95 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -13,7 +13,6 @@ "bignumber.js": "^9.0.1", "immer": "^9.0.2", "lodash-es": "^4.17.21", - "notistack": "^1.0.9", "qrcode": "^1.4.4", "react-use": "^17.2.4", "ts-results": "^3.3.0", diff --git a/packages/shared/src/hooks/useSnackbarCallback.tsx b/packages/shared/src/hooks/useSnackbarCallback.tsx index da0a84e7dbda..dc5bcadb4ab4 100644 --- a/packages/shared/src/hooks/useSnackbarCallback.tsx +++ b/packages/shared/src/hooks/useSnackbarCallback.tsx @@ -1,4 +1,4 @@ -import { useSnackbar } from 'notistack' +import { useSnackbar } from '@masknet/theme' import { useCallback } from 'react' import { useMaskThemeI18N } from '../locales' diff --git a/packages/theme/package.json b/packages/theme/package.json index ee86e7886531..13bf6de8b76c 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -18,6 +18,7 @@ "classnames": "^2.3.1", "fuse.js": "^6.4.6", "lodash-es": "^4.17.20", + "notistack": "^1.0.9", "react-window": "^1.8.6", "tinycolor2": "^1.4.2" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b3068c64afc..1e1b5e6823a5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -596,7 +596,6 @@ importers: bignumber.js: ^9.0.1 immer: ^9.0.2 lodash-es: ^4.17.21 - notistack: ^1.0.9 qrcode: ^1.4.4 react-use: ^17.2.4 ts-results: ^3.3.0 @@ -615,7 +614,6 @@ importers: bignumber.js: 9.0.1 immer: 9.0.2 lodash-es: 4.17.21 - notistack: 1.0.9 qrcode: 1.4.4 react-use: 17.2.4 ts-results: 3.3.0 @@ -648,6 +646,7 @@ importers: classnames: ^2.3.1 fuse.js: ^6.4.6 lodash-es: ^4.17.20 + notistack: ^1.0.9 react-window: ^1.8.6 storybook-addon-matrix: ^1.6.0 tinycolor2: ^1.4.2 @@ -656,6 +655,7 @@ importers: classnames: 2.3.1 fuse.js: 6.4.6 lodash-es: 4.17.21 + notistack: 1.0.9 react-window: 1.8.6 tinycolor2: 1.4.2 devDependencies: