Add mobile H5 QA experience
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { ReactNode } from "react";
|
||||
import { usePathname } from "next/navigation";
|
||||
import Sidebar from "./Sidebar";
|
||||
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
const pathname = usePathname();
|
||||
|
||||
if (pathname.startsWith("/h5")) {
|
||||
return <div className="min-h-screen bg-[#eef3f1]">{children}</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-[#f5f7fa]">
|
||||
<Sidebar />
|
||||
|
||||
Reference in New Issue
Block a user