Skip to content

Commit

Permalink
testing expanded mode
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 29, 2024
1 parent 1ef9012 commit c13b510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ConnectOverlay: React.FC<Props> = ({
};

// !!!!!!!!!
const [connecting, setConnecting] = useState<boolean>(true);
const [connecting, setConnecting] = useState<boolean>(false);

// connect function
const connectMetamask = async () => {
Expand Down
6 changes: 4 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ import WebApp from '@twa-dev/sdk';
import App from './App.tsx';
import './index.css';

// Initialize the Telegram Mini App SDK
WebApp.ready();
// Expand the Telegram Mini App to full screen
WebApp.expand();

WebApp.viewportHeight = window.innerHeight;
// Initialize the Telegram Mini App SDK
WebApp.ready();
// Enable the closing confirmation
WebApp.enableClosingConfirmation();

Expand Down

0 comments on commit c13b510

Please sign in to comment.