refactor: rename layout files for consistency and clarity

This commit is contained in:
rstubryan
2025-10-09 10:00:38 +07:00
parent 9f2add3a57
commit d1f43c4e42
24 changed files with 2 additions and 144 deletions
@@ -1,8 +1,9 @@
// src/app/master-data/(suspense)/layout.tsx
'use client';
import { Suspense } from 'react';
export default function AreaLayout({
export default function SuspenseLayout({
children,
}: {
children: React.ReactNode;
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function KandangLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function LocationLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function NonstockLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function ProductCategoryLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function ProductLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
-17
View File
@@ -1,17 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function UomLayout({ children }: { children: React.ReactNode }) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}
@@ -1,21 +0,0 @@
'use client';
import { Suspense } from 'react';
export default function WarehouseLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<Suspense
fallback={
<div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' />
</div>
}
>
{children}
</Suspense>
);
}