Refactor AdminLayout components across multiple pages to remove title props for a cleaner structure. This change affects the Dashboard, Create and Edit pages for Employees, Purchases, Products, and Raw Materials.

This commit is contained in:
Yoga Pangestu 2026-06-12 00:11:40 +07:00
parent 04e57c0dd1
commit d4016a86d4
9 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@ import AdminLayout from '@/layouts/AdminLayout.vue';
<template>
<Head title="Dashboard" />
<AdminLayout title="Dashboard">
<AdminLayout>
<div class="grid auto-rows-min gap-4 md:grid-cols-3">
<div class="bg-muted/50 aspect-video rounded-xl" />
<div class="bg-muted/50 aspect-video rounded-xl" />

View File

@ -17,7 +17,7 @@ defineProps<{
<Head title="Tambah Pegawai" />
<AdminLayout title="Tambah Pegawai">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -33,7 +33,7 @@ const initialData = computed(() => ({
<Head title="Ubah Pegawai" />
<AdminLayout title="Ubah Pegawai">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -15,7 +15,7 @@ defineProps<{
<template>
<Head title="Tambah Belanja" />
<AdminLayout title="Tambah Belanja">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -33,7 +33,7 @@ const initialData = computed(() => ({
<template>
<Head title="Ubah Belanja" />
<AdminLayout title="Ubah Belanja">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -16,7 +16,7 @@ defineProps<{
<Head title="Tambah Produk" />
<AdminLayout title="Tambah Produk">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -42,7 +42,7 @@ const initialData = computed(() => ({
<Head title="Ubah Produk" />
<AdminLayout title="Ubah Produk">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -15,7 +15,7 @@ defineProps<{
<Head title="Tambah Bahan Baku" />
<AdminLayout title="Tambah Bahan Baku">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">

View File

@ -29,7 +29,7 @@ const initialData = computed(() => ({
<Head title="Ubah Bahan Baku" />
<AdminLayout title="Ubah Bahan Baku">
<AdminLayout>
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="space-y-1">
<h2 class="text-2xl font-bold tracking-tight">