From a4ff4f7b2aece633f130941db6fa2780b8284886 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Sun, 12 Oct 2025 20:32:02 +0700 Subject: [PATCH] feat: add Layout component to wrap children with SuspenseHelper --- src/app/master-data/customer/detail/layout.tsx | 11 +++++++++++ src/app/master-data/supplier/detail/layout.tsx | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/app/master-data/customer/detail/layout.tsx create mode 100644 src/app/master-data/supplier/detail/layout.tsx diff --git a/src/app/master-data/customer/detail/layout.tsx b/src/app/master-data/customer/detail/layout.tsx new file mode 100644 index 00000000..7220dfa1 --- /dev/null +++ b/src/app/master-data/customer/detail/layout.tsx @@ -0,0 +1,11 @@ +import SuspenseHelper from '@/components/helper/SuspenseHelper'; + +const Layout = ({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) => { + return {children}; +}; + +export default Layout; diff --git a/src/app/master-data/supplier/detail/layout.tsx b/src/app/master-data/supplier/detail/layout.tsx new file mode 100644 index 00000000..7220dfa1 --- /dev/null +++ b/src/app/master-data/supplier/detail/layout.tsx @@ -0,0 +1,11 @@ +import SuspenseHelper from '@/components/helper/SuspenseHelper'; + +const Layout = ({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) => { + return {children}; +}; + +export default Layout;