From 552d255be614f55c423982eee467349f995da124 Mon Sep 17 00:00:00 2001 From: Maayan Date: Tue, 10 Jan 2023 08:12:02 -0800 Subject: [PATCH] Add React as a dependency in wallet-adapter-react package (#46) * Add React as a dependency in wallet-adapter-react package * add changeset --- .changeset/pink-games-smoke.md | 5 +++++ packages/wallet-adapter-react/package.json | 6 ++---- packages/wallet-adapter-react/src/WalletProvider.tsx | 1 - pnpm-lock.yaml | 2 ++ 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .changeset/pink-games-smoke.md diff --git a/.changeset/pink-games-smoke.md b/.changeset/pink-games-smoke.md new file mode 100644 index 00000000..cf8fa19e --- /dev/null +++ b/.changeset/pink-games-smoke.md @@ -0,0 +1,5 @@ +--- +"@aptos-labs/wallet-adapter-react": patch +--- + +Add react package as a dependency diff --git a/packages/wallet-adapter-react/package.json b/packages/wallet-adapter-react/package.json index db3285b7..8a4bb8a9 100644 --- a/packages/wallet-adapter-react/package.json +++ b/packages/wallet-adapter-react/package.json @@ -34,9 +34,6 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "lint": "TIMING=1 eslint \"src/**/*.ts*\"" }, - "peerDependencies": { - "react": "*" - }, "devDependencies": { "@aptos-labs/wallet-adapter-tsconfig": "workspace:*", "@types/react": "^18.0.17", @@ -47,6 +44,7 @@ }, "dependencies": { "@aptos-labs/wallet-adapter-core": "*", - "aptos": "^1.3.17" + "aptos": "^1.3.17", + "react": "^18" } } diff --git a/packages/wallet-adapter-react/src/WalletProvider.tsx b/packages/wallet-adapter-react/src/WalletProvider.tsx index c35d6a50..8e6f7ff4 100644 --- a/packages/wallet-adapter-react/src/WalletProvider.tsx +++ b/packages/wallet-adapter-react/src/WalletProvider.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { FC, ReactNode, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 962292b6..2fbcdbbb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -152,11 +152,13 @@ importers: '@types/react-dom': ^18.0.6 aptos: ^1.3.17 eslint: ^8.15.0 + react: ^18 tsup: ^5.10.1 typescript: ^4.5.3 dependencies: '@aptos-labs/wallet-adapter-core': link:../wallet-adapter-core aptos: 1.3.17 + react: 18.2.0 devDependencies: '@aptos-labs/wallet-adapter-tsconfig': link:../tsconfig '@types/react': 18.0.25