Compare commits

..

No commits in common. "7d2e5cd046d3d24b16acf60ff8ba2e0280cfa5ae" and "aea407bd227bb1f84db8ca964eaf9044030fc94d" have entirely different histories.

1 changed files with 2 additions and 19 deletions

View File

@ -1,6 +1,6 @@
"use client";
import { useState, Suspense } from "react";
import { useState } from "react";
import { useRouter, usePathname, useSearchParams } from "next/navigation";
import { Button } from "@/components/ui/button";
import {
@ -191,7 +191,7 @@ const convertSingleMenu = (menu: MenuItem, allMenus: MenuItem[], userInfo: Exten
};
};
function AppLayoutInner({ children }: AppLayoutProps) {
export function AppLayout({ children }: AppLayoutProps) {
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
@ -442,20 +442,3 @@ function AppLayoutInner({ children }: AppLayoutProps) {
</div>
);
}
export function AppLayout({ children }: AppLayoutProps) {
return (
<Suspense
fallback={
<div className="flex h-screen items-center justify-center">
<div className="flex flex-col items-center">
<div className="mb-4 h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent"></div>
<p>...</p>
</div>
</div>
}
>
<AppLayoutInner>{children}</AppLayoutInner>
</Suspense>
);
}