Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Feb 22, 2024
1 parent 13e6eb5 commit 19d5789
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
14 changes: 9 additions & 5 deletions app/app/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use client';

import '@ens-tools/thorin-core';

import { setupConfig } from '@ens-tools/thorin-core';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ThemeProvider } from 'next-themes';
import { useEffect } from 'react';
import { goerli, holesky, mainnet, sepolia } from 'viem/chains';
import { createConfig, http, WagmiProvider } from 'wagmi';
import { injected, walletConnect } from 'wagmi/connectors';
Expand All @@ -26,8 +24,6 @@ const config = createConfig({
},
});

setupConfig(config as any);

declare module 'wagmi' {
interface Register {
config: typeof config;
Expand All @@ -37,6 +33,14 @@ declare module 'wagmi' {
const queryClient = new QueryClient();

export const Theme = ({ children }) => {
useEffect(() => {
(async () => {
const { setupConfig } = await import('@ens-tools/thorin-core');

setupConfig(config as any);
})();
}, []);

return (
<ThemeProvider attribute="class">
<QueryClientProvider client={queryClient}>
Expand Down
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dependencies": {
"@ens-tools/format": "^0.0.2",
"@ens-tools/thorin-core": "0.0.3-3",
"@ens-tools/thorin-react": "0.0.3",
"@ensdomains/thorin": "^0.6.44",
"@headlessui/react": "^1.7.18",
"@mdx-js/loader": "^3.0.0",
Expand Down
21 changes: 1 addition & 20 deletions app/pnpm-lock.yaml

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

0 comments on commit 19d5789

Please sign in to comment.