Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 4, 2024
1 parent a422bb7 commit 4a8bfb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ function App() {
}
}, [isConnected]);

WebApp.MainButton.onClick = () => setView(View.CONNECT);

// Handle MainButton changes on view change
useEffect(() => {
if (view === View.LANDING) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ WebApp.ready();
// Expand the Telegram Mini App to full screen
WebApp.expand();

WebApp.backgroundColor = '#333333';
WebApp.setBackgroundColor('#333333');

// Wallet Connect Config
// 1. Get projectId
Expand Down

0 comments on commit 4a8bfb8

Please sign in to comment.