diff --git a/app/components/Providers.tsx b/app/components/Providers.tsx index 6fa49de..ffcc524 100644 --- a/app/components/Providers.tsx +++ b/app/components/Providers.tsx @@ -10,9 +10,6 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { WagmiProvider } from "wagmi"; import * as chain from "wagmi/chains"; import { type HttpTransport, http } from "viem"; -import dotenv from "dotenv"; - -dotenv.config(); // All of the chains configured below are supported by Tableland // @ts-expect-error this is valid; the OP chains cause a type error @@ -39,7 +36,7 @@ export const config = getDefaultConfig({ appName: "Tableland Table NFT", chains, transports, - projectId: process.env.WALLET_CONNECT_PROJECT_ID ?? "", // Set up a WalletConnect account: https://walletconnect.com/ + projectId: process.env.REACT_APP_REOWN_PROJECT_ID || "482bbbb2051cac0db49303fca927c967", // Set up a WalletConnect account: https://walletconnect.com/ }); const queryClient = new QueryClient(); diff --git a/app/components/Renderer.tsx b/app/components/Renderer.tsx index e042d0a..17e3b5c 100644 --- a/app/components/Renderer.tsx +++ b/app/components/Renderer.tsx @@ -1,11 +1,11 @@ import React, { useEffect } from "react"; -import { useSearchParams } from "react-router-dom"; -import { useDispatch, useSelector } from "react-redux"; +import { useSearchParams, BrowserRouter } from "react-router-dom"; +import { useDispatch, useSelector, Provider } from "react-redux"; import Loading from "./Loading"; import CodeEditor from "./Code"; import ProvidersComponent from "./Providers"; import Table from "./Table"; -import { RootState } from "../store/store"; +import { type RootState, store } from "../store/store"; import Error from "../components/Error"; import { queryTableland } from "../store/queryTableland"; import SuccessfulWrite from "../components/SuccessfulWrite"; @@ -57,7 +57,11 @@ function App() { function Renderer(props) { return ( - + + + + + ); } diff --git a/package-lock.json b/package-lock.json index a6664a2..6e0603d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,14 +11,13 @@ "dependencies": { "@rainbow-me/rainbowkit": "^2.0.6", "@reduxjs/toolkit": "^1.9.0", - "@tableland/sdk": "^7.2.0", + "@tableland/sdk": "^7.2.1", "@tableland/sqlparser": "^1.3.0", "@types/mocha": "^10.0.0", "@typescript-eslint/eslint-plugin": "^5.39.0", "@typescript-eslint/parser": "^5.62.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", - "dotenv": "^16.4.5", "eslint": "^8.54.0", "eslint-config-prettier": "^8.5.0", "eslint-config-standard": "^17.0.0", @@ -5326,21 +5325,20 @@ } }, "node_modules/@tableland/sdk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@tableland/sdk/-/sdk-7.2.0.tgz", - "integrity": "sha512-WloTBEUm7txOi4Jmx1RlgYan2g4wolbhkgWwhLR37y/I1BKh2qd6X3N0g3YjYmyYvap1NdakeDgKc/i24gnrZg==", - "license": "MIT AND Apache-2.0", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/@tableland/sdk/-/sdk-7.2.1.tgz", + "integrity": "sha512-1dROnQcaEAwwHytkZDeyWeq0FHx9ehd1IXr9AhJRVLOWm90rbQCtxg+JtAkBD4fYF7kakUwRAlXnDBkSXxtwuQ==", "dependencies": { "@async-generators/from-emitter": "^0.3.0", "@tableland/evm": "^6.3.0", - "@tableland/sqlparser": "^1.3.0", + "@tableland/sqlparser": "^1.4.1", "ethers": "^6.12.1" } }, "node_modules/@tableland/sqlparser": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@tableland/sqlparser/-/sqlparser-1.3.0.tgz", - "integrity": "sha512-5DddKKbxa3q1DcUBcf+D9bF0xYjoqWYRs8t941vZWDMRQjuHNPW7JjRA0W8zH+LDeKYqWmyJFsm1se8RxTcJPA==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@tableland/sqlparser/-/sqlparser-1.4.1.tgz", + "integrity": "sha512-j8VTruuNm6WA+EuUKTHK4w1zinmsf0P0w9vTD8x8EzrUaXpIQx8/+51Kw2CqgyOhwaKbXrMUTycJbeWfXW5U0A==" }, "node_modules/@tableland/validator": { "version": "1.10.2", @@ -9420,6 +9418,7 @@ "version": "16.4.5", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "dev": true, "engines": { "node": ">=12" }, @@ -24709,20 +24708,20 @@ } }, "@tableland/sdk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@tableland/sdk/-/sdk-7.2.0.tgz", - "integrity": "sha512-WloTBEUm7txOi4Jmx1RlgYan2g4wolbhkgWwhLR37y/I1BKh2qd6X3N0g3YjYmyYvap1NdakeDgKc/i24gnrZg==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/@tableland/sdk/-/sdk-7.2.1.tgz", + "integrity": "sha512-1dROnQcaEAwwHytkZDeyWeq0FHx9ehd1IXr9AhJRVLOWm90rbQCtxg+JtAkBD4fYF7kakUwRAlXnDBkSXxtwuQ==", "requires": { "@async-generators/from-emitter": "^0.3.0", "@tableland/evm": "^6.3.0", - "@tableland/sqlparser": "^1.3.0", + "@tableland/sqlparser": "^1.4.1", "ethers": "^6.12.1" } }, "@tableland/sqlparser": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@tableland/sqlparser/-/sqlparser-1.3.0.tgz", - "integrity": "sha512-5DddKKbxa3q1DcUBcf+D9bF0xYjoqWYRs8t941vZWDMRQjuHNPW7JjRA0W8zH+LDeKYqWmyJFsm1se8RxTcJPA==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@tableland/sqlparser/-/sqlparser-1.4.1.tgz", + "integrity": "sha512-j8VTruuNm6WA+EuUKTHK4w1zinmsf0P0w9vTD8x8EzrUaXpIQx8/+51Kw2CqgyOhwaKbXrMUTycJbeWfXW5U0A==" }, "@tableland/validator": { "version": "1.10.2", @@ -27910,7 +27909,8 @@ "dotenv": { "version": "16.4.5", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==" + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "dev": true }, "dotenv-expand": { "version": "5.1.0", diff --git a/package.json b/package.json index 1bb7211..851f77c 100644 --- a/package.json +++ b/package.json @@ -33,14 +33,13 @@ "dependencies": { "@rainbow-me/rainbowkit": "^2.0.6", "@reduxjs/toolkit": "^1.9.0", - "@tableland/sdk": "^7.2.0", + "@tableland/sdk": "^7.2.1", "@tableland/sqlparser": "^1.3.0", "@types/mocha": "^10.0.0", "@typescript-eslint/eslint-plugin": "^5.39.0", "@typescript-eslint/parser": "^5.62.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", - "dotenv": "^16.4.5", "eslint": "^8.54.0", "eslint-config-prettier": "^8.5.0", "eslint-config-standard": "^17.0.0",