@23blocks/react 7.6.11 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1097,9 +1097,9 @@ function useRewardsBlock() {
1097
1097
  return rewards;
1098
1098
  }
1099
1099
  function useSalesBlock() {
1100
- const ctx = use23Blocks();
1101
- if (!ctx.sales) throw new Error('Sales block not configured. Pass `sales` prop to Blocks23Provider.');
1102
- return ctx.sales;
1100
+ const { sales } = use23Blocks();
1101
+ if (!sales) throw new Error('Sales block not configured. Pass `sales` prop to Blocks23Provider.');
1102
+ return sales;
1103
1103
  }
1104
1104
  function useWalletBlock() {
1105
1105
  const { wallet } = use23Blocks();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/react",
3
- "version": "7.6.11",
3
+ "version": "7.7.0",
4
4
  "description": "React bindings for 23blocks SDK - hooks and context providers",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",