Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 3, 2024
1 parent 542ac2d commit ecb6188
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ function App() {
const [view, setView] = useState<View>(View.LANDING);

const addToHomeScreen = () => {
// setView(View.CONNECT);
WebApp.openLink(
'https://metamask.app.link/dapp/softstackhq.github.io/telegram-mini-app/'
);
setView(View.CONNECT);
};

const skip = () => {
Expand Down Expand Up @@ -70,7 +67,7 @@ function App() {
if (view === View.LANDING) {
WebApp.MainButton.show();
WebApp.MainButton.setText('Add to your Home Screen');
WebApp.MainButton.onClick = () => skip;
WebApp.MainButton.onClick = () => setView(View.CONNECT);
}
if (view === View.CONNECT) {
WebApp.MainButton.hide();
Expand Down

0 comments on commit ecb6188

Please sign in to comment.