Skip to content

Commit

Permalink
Revert mac navigation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Nov 21, 2023
1 parent 5078e2e commit 3d64573
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 54 deletions.
50 changes: 0 additions & 50 deletions src/lib/keyboard/useMacTabNavigationFix.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/screens/deck-form/deck-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { useMount } from "../../lib/react/use-mount.ts";
import { useBackButton } from "../../lib/telegram/use-back-button.tsx";
import { useTelegramProgress } from "../../lib/telegram/use-telegram-progress.tsx";
import { assert } from "../../lib/typescript/assert.ts";
import { useMacTabNavigationFix } from "../../lib/keyboard/useMacTabNavigationFix.tsx";

export const DeckForm = observer(() => {
const deckFormStore = useDeckFormStore();
Expand All @@ -29,7 +28,6 @@ export const DeckForm = observer(() => {
deckFormStore.onDeckBack();
});
useTelegramProgress(() => deckFormStore.isSending);
useMacTabNavigationFix();

if (!deckFormStore.form) {
return null;
Expand Down
2 changes: 0 additions & 2 deletions src/screens/deck-form/quick-add-card-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useMainButton } from "../../lib/telegram/use-main-button.tsx";
import { useBackButton } from "../../lib/telegram/use-back-button.tsx";
import { QuickAddCardFormStore } from "../../store/quick-add-card-form-store.ts";
import { useTelegramProgress } from "../../lib/telegram/use-telegram-progress.tsx";
import { useMacTabNavigationFix } from "../../lib/keyboard/useMacTabNavigationFix.tsx";

export const QuickAddCardForm = observer(() => {
const [quickAddCardStore] = useState(() => new QuickAddCardFormStore());
Expand All @@ -17,7 +16,6 @@ export const QuickAddCardForm = observer(() => {
quickAddCardStore.onBack();
});
useTelegramProgress(() => quickAddCardStore.isSending);
useMacTabNavigationFix();

return <CardFormView cardForm={quickAddCardStore.form} />;
});

0 comments on commit 3d64573

Please sign in to comment.