Browse Source

Include network in examples

Jordan Sexton 3 years ago
parent
commit
61fddeda73

+ 2 - 1
APP.md

@@ -62,7 +62,8 @@ export const Wallet: FC = () => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     return (
     return (

+ 2 - 1
packages/starter/create-react-app-starter/src/App.tsx

@@ -40,7 +40,8 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     return (
     return (

+ 2 - 1
packages/starter/example/src/components/ContextProvider.tsx

@@ -73,7 +73,8 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     const { enqueueSnackbar } = useSnackbar();
     const { enqueueSnackbar } = useSnackbar();

+ 2 - 1
packages/starter/material-ui-starter/src/App.tsx

@@ -42,7 +42,8 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     const { enqueueSnackbar } = useSnackbar();
     const { enqueueSnackbar } = useSnackbar();

+ 2 - 1
packages/starter/nextjs-starter/src/pages/_app.tsx

@@ -34,7 +34,8 @@ const App: FC<AppProps> = ({ Component, pageProps }) => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     return (
     return (

+ 2 - 1
packages/starter/react-ui-starter/src/App.tsx

@@ -37,7 +37,8 @@ const Context: FC<{ children: ReactNode }> = ({ children }) => {
              */
              */
             new UnsafeBurnerWalletAdapter(),
             new UnsafeBurnerWalletAdapter(),
         ],
         ],
-        []
+        // eslint-disable-next-line react-hooks/exhaustive-deps
+        [network]
     );
     );
 
 
     return (
     return (