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 4a8bfb8 commit 9cad3fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,13 @@ function App() {
}
}, [isConnected]);

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

// Handle MainButton changes on view change
useEffect(() => {
if (view === View.LANDING) {
WebApp.MainButton.show();
WebApp.MainButton.setText('Add to your Home Screen');
WebApp.MainButton.onClick = () => setView(View.CONNECT);
WebApp.MainButton.offClick = () => setView(View.CONNECT);
WebApp.MainButton.onClick(skip);
// WebApp.MainButton.offClick = () => setView(View.CONNECT);
}
if (view === View.CONNECT) {
WebApp.MainButton.hide();
Expand Down

0 comments on commit 9cad3fc

Please sign in to comment.