From 065bf70703efbc632ac6f81743b4c7944cb1bf33 Mon Sep 17 00:00:00 2001
From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com>
Date: Mon, 3 Aug 2026 12:57:20 +0700
Subject: [PATCH] chore: add inline documentation for toggling history and
bookmark features in module layouts
---
.../src/apps/main/layouts/module.layout.tsx | 23 +++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/apps/web/src/apps/main/layouts/module.layout.tsx b/apps/web/src/apps/main/layouts/module.layout.tsx
index a54d867..666c814 100644
--- a/apps/web/src/apps/main/layouts/module.layout.tsx
+++ b/apps/web/src/apps/main/layouts/module.layout.tsx
@@ -25,6 +25,7 @@ registerModuleNamespace('history', { en: historyEn, id: historyId });
registerModuleNamespace('bookmark', { en: bookmarkEn, id: bookmarkId });
export default function ModuleLayout({ children }: { children: React.ReactNode }) {
+ // FIXME: To disable the history tracker, simply comment out or remove the following line:
useHistoryTracker();
const configAppShell: CoreAppShellConfig = {
@@ -47,12 +48,30 @@ export default function ModuleLayout({ children }: { children: React.ReactNode }
config={configAppShell}
slots={{
header: ,
- sidebar: ,
- sidebarMobile: ,
+ sidebar: (
+
+ ),
+ sidebarMobile: (
+
+ ),
}}
>
{children}
+ {/* FIXME: To hide the history drawer, comment out or remove the HistoryDrawer component below */}
+ {/* FIXME: To hide the bookmark drawer, comment out or remove the BookmarkDrawer component below */}