mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-28 20:49:34 -05:00
chore: Disable administration view on mobile devices (#862)
* Blocks mobile usage * remove button --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
committed by
GitHub
parent
83bc8a8c11
commit
07258aabdd
@@ -5,6 +5,7 @@ import { getServerSession } from "next-auth";
|
||||
import { redirect } from "next/navigation";
|
||||
import { Suspense } from "react";
|
||||
import PosthogIdentify from "./PosthogIdentify";
|
||||
import { NoMobileOverlay } from "@formbricks/ui";
|
||||
|
||||
export default async function AppLayout({ children }) {
|
||||
const session = await getServerSession(authOptions);
|
||||
@@ -14,6 +15,7 @@ export default async function AppLayout({ children }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<NoMobileOverlay />
|
||||
<Suspense>
|
||||
<PostHogPageview />
|
||||
</Suspense>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { PHProvider, PostHogPageview } from "../PostHogClient";
|
||||
import { Suspense } from "react";
|
||||
import { NoMobileOverlay } from "@formbricks/ui";
|
||||
|
||||
export default function AppLayout({ children }) {
|
||||
return (
|
||||
<>
|
||||
<NoMobileOverlay />
|
||||
<Suspense>
|
||||
<PostHogPageview />
|
||||
</Suspense>
|
||||
|
||||
Reference in New Issue
Block a user