Skip to content

Commit

Permalink
fix node.js only package in client issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joewagner committed Sep 19, 2024
1 parent 313b41c commit 39e75fe
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
5 changes: 1 addition & 4 deletions app/components/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down
12 changes: 8 additions & 4 deletions app/components/Renderer.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -57,7 +57,11 @@ function App() {
function Renderer(props) {
return (
<ProvidersComponent>
<App />
<Provider store={store}>
<BrowserRouter>
<App />
</BrowserRouter>
</Provider>
</ProvidersComponent>
);
}
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 39e75fe

Please sign in to comment.