mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-31 14:09:42 +07:00
3
src/app/[variants]/loading.tsx
Normal file
3
src/app/[variants]/loading.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import Loading from '@/components/Loading/BrandTextLoading';
|
||||
|
||||
export default () => <Loading />;
|
||||
@@ -12,9 +12,7 @@ export default async (props: DynamicLayoutProps) => {
|
||||
// Conditionally load and render based on device type
|
||||
// Using native dynamic import ensures complete code splitting
|
||||
// Mobile and Desktop bundles will be completely separate
|
||||
|
||||
console.log('isMobile', isMobile);
|
||||
console.log('locale', locale);
|
||||
|
||||
if (isMobile) {
|
||||
return <MobileRouter locale={locale} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user