perbaikan name page

This commit is contained in:
Aji Setiaji
2025-07-09 23:09:49 +07:00
parent cf7afefbd4
commit bdcffc401e
2 changed files with 12 additions and 3 deletions

View File

@@ -53,10 +53,12 @@
localStorage.clear();
goto("/login");
}
let pageName = "Dashboard";
</script>
<div class="flex h-screen">
<Sidebar />
<Sidebar {pageName} on:changePage={(e) => pageName = e.detail} />
<!-- Main Content -->
<div class="flex-1 flex flex-col bg-gray-100 overflow-hidden">
@@ -64,7 +66,7 @@
<div
class="flex items-center justify-between bg-white shadow px-6 py-3 border-b"
>
<div class="text-lg font-semibold text-gray-700">Dashboard</div>
<div class="text-lg font-semibold text-gray-700">{pageName}</div>
<div class="flex items-center gap-6">
<!-- Notifications -->