mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
mobile: minor cleanup
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
|||||||
} from "../../../services/event-manager";
|
} from "../../../services/event-manager";
|
||||||
import Navigation from "../../../services/navigation";
|
import Navigation from "../../../services/navigation";
|
||||||
import PremiumService from "../../../services/premium";
|
import PremiumService from "../../../services/premium";
|
||||||
|
import SettingsService from "../../../services/settings";
|
||||||
import { useUserStore } from "../../../stores/use-user-store";
|
import { useUserStore } from "../../../stores/use-user-store";
|
||||||
import { eCloseSheet } from "../../../utils/events";
|
import { eCloseSheet } from "../../../utils/events";
|
||||||
import { AppFontSize } from "../../../utils/size";
|
import { AppFontSize } from "../../../utils/size";
|
||||||
@@ -24,7 +25,6 @@ import AppIcon from "../../ui/AppIcon";
|
|||||||
import { Button } from "../../ui/button";
|
import { Button } from "../../ui/button";
|
||||||
import Heading from "../../ui/typography/heading";
|
import Heading from "../../ui/typography/heading";
|
||||||
import Paragraph from "../../ui/typography/paragraph";
|
import Paragraph from "../../ui/typography/paragraph";
|
||||||
import SettingsService from "../../../services/settings";
|
|
||||||
const isGithubRelease = Config.GITHUB_RELEASE === "true";
|
const isGithubRelease = Config.GITHUB_RELEASE === "true";
|
||||||
const INDEX_TO_PLAN = {
|
const INDEX_TO_PLAN = {
|
||||||
1: "essential",
|
1: "essential",
|
||||||
@@ -38,7 +38,6 @@ export default function PaywallSheet<Tid extends FeatureId>(props: {
|
|||||||
const { colors } = useThemeColors();
|
const { colors } = useThemeColors();
|
||||||
const pricingPlans = usePricingPlans();
|
const pricingPlans = usePricingPlans();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("PaywallSheet mounted with feature:", props.feature);
|
|
||||||
ToastManager.hide();
|
ToastManager.hide();
|
||||||
if (!props.feature.availableOn) return;
|
if (!props.feature.availableOn) return;
|
||||||
const plan = pricingPlans.pricingPlans.find(
|
const plan = pricingPlans.pricingPlans.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user