Skip to content

Commit 9bbd3ab

Browse files
committed
add favicon
1 parent 25a8db1 commit 9bbd3ab

File tree

7 files changed

+34
-48
lines changed

7 files changed

+34
-48
lines changed

next.config.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4-
}
4+
webpack: (config, { isServer }) => {
5+
if (!isServer) {
6+
config.resolve.fallback = {
7+
...config.resolve.fallback,
8+
fs: false,
9+
};
10+
}
511

6-
module.exports = nextConfig
12+
return config;
13+
},
14+
};
15+
16+
module.exports = nextConfig;

package-lock.json

-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"react-dom": "18.2.0",
2222
"react-hot-toast": "^2.4.1",
2323
"react-icons": "^4.8.0",
24-
"react-toastify": "^9.1.3",
2524
"shortid": "^2.2.16",
2625
"tailwindcss": "3.3.2",
2726
"typescript": "5.0.4",

public/favicon.ico

166 KB
Binary file not shown.

public/vercel.svg

+22-1
Loading

src/context/index.tsx

-9
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ export const DappContextProvider: React.FC<React.PropsWithChildren<{}>> = ({ chi
7474

7575
if (storedContracts) {
7676
contracts = JSON.parse(storedContracts);
77-
} else {
78-
contracts.push({
79-
name: 'Best contract ever',
80-
address: '5H3QaazsFy4y9sexX9d3HwFgKjsAkQydirVWj54YWDm7mxjF',
81-
owner: '5H3ik1BKrBMcPXZQYnNHsZ12qUntsDfEVbfi5PFHEUofNg25',
82-
83-
beneficiaries: [{ name: 'Ben', address: '5G1WsvjyWoaVZzJKnCpn3iK3sScmXrtuTdU3VSVhZAabREot' }],
84-
});
85-
localStorage.setItem('contracts', JSON.stringify(contracts));
8677
}
8778

8879
setContracts(contracts);

src/pages/_app.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { InkConfig } from 'useink';
66
import { RococoContractsTestnet } from 'useink/chains';
77
import { NotificationsProvider } from 'useink/notifications';
88
import { DappContextProvider } from '@/context';
9-
import 'react-toastify/dist/ReactToastify.css';
109
import { CreateContextProvider } from '@/context/create';
1110

1211
const UseInkProvider: React.ComponentType<React.PropsWithChildren<InkConfig>> = dynamic(

0 commit comments

Comments
 (0)