Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
HadiKhai committed Mar 23, 2024
1 parent 2802a3f commit 52f5b3c
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 147 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
5 changes: 4 additions & 1 deletion examples/fullstack/nextjs/app/src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ChainId } from '@justaname.id/sdk'
import { getDefaultConfig, getDefaultWallets, RainbowKitProvider } from '@rainbow-me/rainbowkit';
import { argentWallet, ledgerWallet, trustWallet } from '@rainbow-me/rainbowkit/wallets';
import { mainnet, sepolia } from 'wagmi/chains';
import React from 'react';

interface ProviderProps {
children: React.ReactNode
Expand Down Expand Up @@ -38,7 +39,9 @@ export const Providers: React.FC<ProviderProps> = (props) =>{
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
<JustaNameProvider chainId={chainId}>
{props.children}
<React.Fragment>
{props.children}
</React.Fragment>
</JustaNameProvider>
</RainbowKitProvider>
</QueryClientProvider>
Expand Down
6 changes: 4 additions & 2 deletions examples/fullstack/nextjs/pages/src/pages/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { getDefaultConfig, getDefaultWallets, RainbowKitProvider } from '@rainbo
import { argentWallet, ledgerWallet, trustWallet } from '@rainbow-me/rainbowkit/wallets';
import { mainnet } from 'wagmi/chains';
import { sepolia } from 'viem/chains';
import React from 'react';

interface ProviderProps {
children: React.ReactNode

}
export const Providers: React.FC<ProviderProps> = (props) =>{
const { wallets } = getDefaultWallets();
Expand Down Expand Up @@ -40,7 +40,9 @@ export const Providers: React.FC<ProviderProps> = (props) =>{
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
<JustaNameProvider chainId={chainId}>
{props.children}
<React.Fragment>
{props.children}
</React.Fragment>
</JustaNameProvider>
</RainbowKitProvider>
</QueryClientProvider>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
},
"workspaces": [
"packages/@justaname.id/*",
"packages/*",
"examples/backend/*"
"packages/*"
],
"packageManager": "[email protected]",
"dependencies": {
Expand All @@ -103,6 +102,7 @@
"@rainbow-me/rainbowkit": "^2.0.2",
"@tanstack/react-query": "^5.28.4",
"@uidotdev/usehooks": "^2.4.1",
"@vitejs/plugin-react-swc": "^3.5.0",
"axios": "^1.6.0",
"cors": "^2.8.5",
"expo": "~50.0.3",
Expand Down
Loading

0 comments on commit 52f5b3c

Please sign in to comment.