-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Persist query data in session storage (#229)"
This reverts commit d35f2f6.
- Loading branch information
1 parent
d35f2f6
commit 8937b30
Showing
7 changed files
with
507 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/web-app/app/_providers/react-query-wrapper-provider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | ||
import { TChildren } from '@/app/_types'; | ||
|
||
const queryClient = new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
retry: 0, | ||
// staleTime: Infinity, | ||
}, | ||
}, | ||
}); | ||
|
||
export function ReactQueryProviderWrapper({ children }: TChildren) { | ||
return ( | ||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use client'; | ||
|
||
import { WagmiProvider } from 'wagmi'; | ||
import { | ||
RainbowKitProvider, | ||
darkTheme, | ||
type Theme, | ||
} from '@rainbow-me/rainbowkit'; | ||
import { TChildren } from '@/app/_types'; | ||
import { nohemi } from '../_ui/fonts'; | ||
import merge from 'lodash.merge'; | ||
import { wagmiConfig } from './wagmi-config'; | ||
|
||
const customTheme = merge( | ||
darkTheme({ | ||
overlayBlur: 'small', | ||
accentColor: '#3865FD', | ||
accentColorForeground: '#FFF', | ||
}), | ||
{ | ||
fonts: { | ||
body: nohemi.style.fontFamily, | ||
}, | ||
}, | ||
) as Theme; | ||
|
||
export function Web3Provider({ children }: TChildren) { | ||
return ( | ||
<WagmiProvider config={wagmiConfig}> | ||
<RainbowKitProvider | ||
showRecentTransactions={true} | ||
theme={customTheme} | ||
modalSize="compact" | ||
> | ||
{children} | ||
</RainbowKitProvider> | ||
</WagmiProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.