diff --git a/package-lock.json b/package-lock.json index 2dcf294..80cab40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1231,6 +1231,11 @@ "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.1.tgz", "integrity": "sha512-n1znAOXQ5idqjRfxSN8vF8q2IC1waJbT0cTfSE6/7LKQ/afySGll77v725WzUc1XfsOTEn1+buImNOhzWwMvRA==" }, + "@capacitor/storage": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@capacitor/storage/-/storage-0.3.0.tgz", + "integrity": "sha512-EV4RN0Pw31ni5QB7HJ+6zEcs6TGWUM7hSZq7/lgO0jLroWkFDs/vu+htan7bI98tdrep3Py9D7ABw5ezU6ET2Q==" + }, "@cnakazawa/watch": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", diff --git a/package.json b/package.json index 9a148f3..596eeff 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "@capacitor/android": "^3.0.0-beta.1", "@capacitor/core": "^3.0.0-beta.1", "@capacitor/ios": "^3.0.0-beta.1", + "@capacitor/storage": "^0.3.0", "@ionic/react": "^5.5.2", "@ionic/react-router": "^5.5.2", "@ionic/storage": "^2.3.1", diff --git a/src/utils/capacitorStorage.tsx b/src/utils/capacitorStorage.tsx index 9369132..baf89ce 100644 --- a/src/utils/capacitorStorage.tsx +++ b/src/utils/capacitorStorage.tsx @@ -1,6 +1,4 @@ -import { Plugins } from '@capacitor/core'; - -const { Storage } = Plugins; +import { Storage } from '@capacitor/storage'; const createCapacitorStorage = () => { return {