Skip to content

Commit 23610be

Browse files
committed
Merge branch 'zerosnacks/introduce-viem' of github.com:foundry-rs/browser-wallet into zerosnacks/introduce-viem
2 parents 84b6c44 + a979b27 commit 23610be

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/App.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ import { Porto } from "porto";
88

99
import type { EIP6963ProviderInfo, EIP1193, AnnounceEvent } from "./types.ts";
1010

11+
declare global {
12+
interface Window {
13+
__PORTO__?: Porto;
14+
}
15+
}
1116
const ALL_CHAINS: Chain[] = Object.values(chains) as Chain[];
1217
const byId = (id: number) => ALL_CHAINS.find((c) => c.id === id);
1318

1419
export function App() {
1520
useEffect(() => {
16-
if (!(window as any).__PORTO__) {
17-
(window as any).__PORTO__ = Porto.create();
21+
if (!window.__PORTO__) {
22+
window.__PORTO__ = Porto.create();
1823
}
1924
}, []);
2025

src/styles/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body,
44
width: 100%;
55
height: 100%;
66
overflow: hidden;
7-
font-family: "Inter-Regular", sans-serif;
7+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
88
background-color: #13151b;
99
color: #f8f8f8;
1010
}

0 commit comments

Comments
 (0)