Compare commits

..
Author SHA1 Message Date
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
306debb029 Version Packages (#302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-12 10:57:32 -07:00
Joaquim VergesandGitHub 86f0ceff46 [React] Remove useAddress hook for now (#301) 2022-10-12 17:54:14 +00:00
11 changed files with 34 additions and 17 deletions
+2
View File
@@ -1,5 +1,7 @@
# @thirdweb-dev/auth
## 2.0.16
## 2.0.15
## 2.0.14
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/auth",
"version": "2.0.15",
"version": "2.0.16",
"exports": {
"./next": {
"module": "./next/dist/thirdweb-dev-auth-next.esm.js",
+7
View File
@@ -1,5 +1,12 @@
# thirdweb
## 0.8.2
### Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@3.2.4
## 0.8.1
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "thirdweb",
"main": "dist/cli/index.js",
"version": "0.8.1",
"version": "0.8.2",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
+6
View File
@@ -1,5 +1,11 @@
# @thirdweb-dev/react
## 3.2.4
### Patch Changes
- [#301](https://github.com/thirdweb-dev/js/pull/301) [`86f0cef`](https://github.com/thirdweb-dev/js/commit/86f0ceff46f72df8ebd81f843e3c66a245f23992) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Remove useAddress hook for now
## 3.2.3
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/react",
"version": "3.2.3",
"version": "3.2.4",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
@@ -1,11 +0,0 @@
import { useSDK } from "../../providers/base";
/**
* Get the currently connected wallet address
*
* @returns the address of the connected wallet (in base58 string format)
*/
export function useAddress() {
const sdk = useSDK();
return sdk?.wallet?.getAddress();
}
-1
View File
@@ -35,5 +35,4 @@ export * from "./hooks/token/useTransferToken";
export * from "./hooks/auth";
//Wallet
export * from "./hooks/wallet/useAddress";
export * from "./hooks/wallet/useBalance";
+13 -1
View File
@@ -54,7 +54,19 @@ export const ThirdwebSDKProvider: ComponentWithChildren<
}
// disabled wallet on purpose because we handle that below
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [network, wallet]);
}, [network]);
useEffect(() => {
if (
wallet &&
wallet.publicKey &&
sdk &&
(sdk as any)._network === network
) {
sdk.wallet.connect(wallet);
return;
}
}, [network, sdk, wallet]);
const ctxValue = useMemo(
() =>
+2
View File
@@ -1,5 +1,7 @@
# @thirdweb-dev/sdk
## 3.2.4
## 3.2.3
## 3.2.2
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@thirdweb-dev/sdk",
"version": "3.2.3",
"version": "3.2.4",
"description": "The main thirdweb SDK.",
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/sdk",
"license": "Apache-2.0",