diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index 23f1806bb..930e8aefa 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -56,16 +56,11 @@ import { SidebarMenuSubItem, SidebarProvider, } from "@/components/ui/sidebar"; -import { - MobilePage, - MobilePageContent, - MobilePagePortal, - MobilePageTitle, -} from "@/components/mobile/MobilePage"; import { ChevronRight } from "lucide-react"; import { IoMdArrowRoundBack } from "react-icons/io"; import { cn } from "@/lib/utils"; import Heading from "@/components/ui/heading"; +import { isPWA } from "@/utils/isPWA"; const allSettingsViews = [ "ui", @@ -310,26 +305,24 @@ export default function Settings() { )} - - - -
+ {mobileMenuOpen && ( +
+
+
- +

{t("settings", { ns: "common" })} - +

-
+
{settingsGroups.map((group) => { const filteredItems = group.items.filter((item) => visibleSettingsViews.includes(item.key as SettingsType), @@ -363,9 +356,9 @@ export default function Settings() { ); })}
- - - +
+
+ )}
{(() => { const CurrentComponent = getCurrentComponent(page);