diff --git a/package.json b/package.json index 5fc1899..f9fec3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "token-gating-sdk", - "version": "1.3.3", + "version": "1.3.7", "description": "A token gating SDK to restrict access to Next and React Application for NFT and Token Holders", "main": "dist/esm/index.js", "types": "./dist/index.d.ts", @@ -51,13 +51,16 @@ "alchemy-sdk": "^2.5.0", "dotenv": "^16.0.3", "ethers": "^5.7.2", - "styled-components": "^5.3.8", - "wagmi": "^0.11.7", + "next": "^13.2.2", + "react": "^18.2.0", "react-router-dom": "^6.8.2", - "next": "^13.2.2" + "styled-components": "^5.3.8", + "wagmi": "^0.11.7" }, "peerDependencies": { + "next": "^13.2.2", "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "react-router-dom": "^6.8.2" } } diff --git a/src/components/nextWrapper/nextWrapper.tsx b/src/components/nextWrapper/nextWrapper.tsx index 371ee23..e2127d5 100644 --- a/src/components/nextWrapper/nextWrapper.tsx +++ b/src/components/nextWrapper/nextWrapper.tsx @@ -16,7 +16,7 @@ import { mainnet, polygon, optimism, arbitrum } from "wagmi/chains"; import { alchemyProvider } from "wagmi/providers/alchemy"; import { publicProvider } from "wagmi/providers/public"; import { useState, useEffect } from "react"; -import { useRouter } from "next/router"; +import { useRouter } from "next/router.js"; import { Network, Alchemy } from "alchemy-sdk"; import { configDataType, configType, methods, networks } from "../config/index";