Skip to content

Commit

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

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

const skip = () => {
Expand Down Expand Up @@ -67,7 +70,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 = () => skip;
}
if (view === View.CONNECT) {
WebApp.MainButton.hide();
Expand Down

0 comments on commit 542ac2d

Please sign in to comment.