Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Sep 30, 2024
1 parent bc831b5 commit 0694283
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "next/core-web-vitals"
"extends": [
"next/babel",
"next/core-web-vitals"
]
}
6 changes: 2 additions & 4 deletions frontend/src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ import { useEffect, useState } from 'react';

import { Navigation } from '@/components/navigation';
import { NetworkId } from '@/config';
import { NearContext,Wallet } from '@/wallets/near';
import { NearContext, Wallet } from '@/wallets/near';

const wallet = new Wallet({ networkId: NetworkId });

export default function MyApp({ Component, pageProps }) {
const [signedAccountId, setSignedAccountId] = useState('');

useEffect(() => {
wallet.startUp(setSignedAccountId);
}, []);
useEffect(() => { wallet.startUp(setSignedAccountId) }, []);

return (
<NearContext.Provider value={{ wallet, signedAccountId }}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/hello-near/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useContext,useEffect, useState } from 'react';
import { useContext, useEffect, useState } from 'react';

import { Cards } from '@/components/cards';
import styles from '@/styles/app.module.css';
Expand Down

0 comments on commit 0694283

Please sign in to comment.