Skip to content

Commit

Permalink
test & fix wrongnetwork case
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuh2511 committed Sep 27, 2024
1 parent 91b33a8 commit 8c3085f
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
2 changes: 0 additions & 2 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ const Home = () => {
},
});

console.log("eventHistoryData", eventHistoryData);

const {
isLoading: isGreetingLoading,
data: greeting,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const WrongNetworkDropdown = () => {
tabIndex={0}
className="dropdown-content menu p-2 mt-1 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
>
<NetworkOptions />
{/* <NetworkOptions /> */}
<li>
<button
className="menu-item text-error btn-sm !rounded-xl flex gap-3 py-3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const Wallet = ({
const { resolvedTheme } = useTheme();
const isDarkMode = resolvedTheme === "dark";


console.log(connector)

return (
<button
className="bg-modal-network network w-[145px] h-[145px]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const WrongNetworkDropdown = () => {
tabIndex={0}
className="dropdown-content menu p-2 mt-1 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
>
<NetworkOptions />
{/* <NetworkOptions /> */}
<li>
<button
className="menu-item text-error btn-sm !rounded-xl flex gap-3 py-3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const deployedContracts = {
devnet: {
YourContract: {
address:
"0x7a84e911a14f3b4b078c13e7e00e0c20e4c11808d89bf6438e7a8d8a98fab77",
"0x36affc753c570fbf7947f0c478901e8a192552de54d36340b1c555f8afa0b5e",
abi: [
{
type: "impl",
Expand Down
5 changes: 5 additions & 0 deletions packages/nextjs/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ p {
.content {
max-width: 1600px;
}

@media (max-width: 1600px) {
.content {
padding: 0 24px;
Expand Down Expand Up @@ -82,3 +83,7 @@ p {
cursor: pointer;
color: white;
}

.dropdown .dropdown-content{
z-index: 99;
}
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3352,11 +3352,11 @@ __metadata:
linkType: hard

"@types/node@npm:*":
version: 22.7.2
resolution: "@types/node@npm:22.7.2"
version: 22.7.3
resolution: "@types/node@npm:22.7.3"
dependencies:
undici-types: ~6.19.2
checksum: 5e753a4a7195a05133e1234e6e2eb68d9f002c5566499dc560e1d7efdcad102f10815ea11f8e206a04b7626876c666227535c755a7d77bc71d73278864b0a652
checksum: 1785ceb0d7b05b2a68df85ec89f2c76bc57a59f4f7a349966f2f7c8ee531d59dcba1adb4e3fddb19e0981ded96bf255291858e6b56dfe7984247b3a4f1227a22
languageName: node
linkType: hard

Expand Down Expand Up @@ -6632,14 +6632,14 @@ __metadata:
linkType: hard

"eslint-module-utils@npm:^2.8.1, eslint-module-utils@npm:^2.9.0":
version: 2.11.1
resolution: "eslint-module-utils@npm:2.11.1"
version: 2.12.0
resolution: "eslint-module-utils@npm:2.12.0"
dependencies:
debug: ^3.2.7
peerDependenciesMeta:
eslint:
optional: true
checksum: 9602122625c05c971c98edfe54075c3147bdeb388375e5f8df55e62dfd894b042dc0eedba97347effba2ca458237edadd88fbc0d015f195c42853d6dc23697a1
checksum: be3ac52e0971c6f46daeb1a7e760e45c7c45f820c8cc211799f85f10f04ccbf7afc17039165d56cb2da7f7ca9cec2b3a777013cddf0b976784b37eb9efa24180
languageName: node
linkType: hard

Expand Down Expand Up @@ -6722,8 +6722,8 @@ __metadata:
linkType: hard

"eslint-plugin-react@npm:^7.33.2":
version: 7.36.1
resolution: "eslint-plugin-react@npm:7.36.1"
version: 7.37.0
resolution: "eslint-plugin-react@npm:7.37.0"
dependencies:
array-includes: ^3.1.8
array.prototype.findlast: ^1.2.5
Expand All @@ -6745,7 +6745,7 @@ __metadata:
string.prototype.repeat: ^1.0.0
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
checksum: bf3be414f3d639200a7d91feeaa6beec3397feed93ab22eaecef44dda37ecbd01812ed1720c72a9861fb276d3543cea69a834a66f64de3d878796fef4f4bf129
checksum: ece92e28b34ced0fd6bddebd41234ee53187b236fd507abef4f61cc868e27edd94fb7e290f44ff546037a6862c3302e848185a5e6511e2bcdf1883a1bfaa4ffc
languageName: node
linkType: hard

Expand Down Expand Up @@ -9881,9 +9881,9 @@ __metadata:
linkType: hard

"package-json-from-dist@npm:^1.0.0":
version: 1.0.0
resolution: "package-json-from-dist@npm:1.0.0"
checksum: ac706ec856a5a03f5261e4e48fa974f24feb044d51f84f8332e2af0af04fbdbdd5bbbfb9cbbe354190409bc8307c83a9e38c6672c3c8855f709afb0006a009ea
version: 1.0.1
resolution: "package-json-from-dist@npm:1.0.1"
checksum: 58ee9538f2f762988433da00e26acc788036914d57c71c246bf0be1b60cdbd77dd60b6a3e1a30465f0b248aeb80079e0b34cb6050b1dfa18c06953bb1cbc7602
languageName: node
linkType: hard

Expand Down

0 comments on commit 8c3085f

Please sign in to comment.