Skip to content

Commit

Permalink
WebApp.expand() from the very beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Oct 11, 2023
1 parent 213af38 commit b6613d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "@mdi/font/css/materialdesignicons.min.css";
import WebApp from "@twa-dev/sdk";

WebApp.ready();
WebApp.expand();
WebApp.enableClosingConfirmation();

ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
2 changes: 0 additions & 2 deletions src/screens/deck-review/deck-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export const DeckPreview = observer(() => {
}

reviewStore.startDeckReview(deckListStore.selectedDeck.cardsToReview);

WebApp.expand();
};
WebApp.MainButton.onClick(onClick);

Expand Down
1 change: 0 additions & 1 deletion src/store/screen-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export class ScreenStore {
navigateToDeckForm(deckFormId?: number) {
this.screen = Screen.DeckForm;
this.deckFormId = deckFormId;
WebApp.expand();
}

get isDeckScreen() {
Expand Down

0 comments on commit b6613d5

Please sign in to comment.