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:
parent
04e57c0dd1
commit
d4016a86d4
@ -6,7 +6,7 @@ import AdminLayout from '@/layouts/AdminLayout.vue';
|
|||||||
<template>
|
<template>
|
||||||
<Head title="Dashboard" />
|
<Head title="Dashboard" />
|
||||||
|
|
||||||
<AdminLayout title="Dashboard">
|
<AdminLayout>
|
||||||
<div class="grid auto-rows-min gap-4 md:grid-cols-3">
|
<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" />
|
||||||
<div class="bg-muted/50 aspect-video rounded-xl" />
|
<div class="bg-muted/50 aspect-video rounded-xl" />
|
||||||
|
|||||||
@ -17,7 +17,7 @@ defineProps<{
|
|||||||
|
|
||||||
<Head title="Tambah Pegawai" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -33,7 +33,7 @@ const initialData = computed(() => ({
|
|||||||
|
|
||||||
<Head title="Ubah Pegawai" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -15,7 +15,7 @@ defineProps<{
|
|||||||
<template>
|
<template>
|
||||||
<Head title="Tambah Belanja" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -33,7 +33,7 @@ const initialData = computed(() => ({
|
|||||||
<template>
|
<template>
|
||||||
<Head title="Ubah Belanja" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -16,7 +16,7 @@ defineProps<{
|
|||||||
|
|
||||||
<Head title="Tambah Produk" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -42,7 +42,7 @@ const initialData = computed(() => ({
|
|||||||
|
|
||||||
<Head title="Ubah Produk" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -15,7 +15,7 @@ defineProps<{
|
|||||||
|
|
||||||
<Head title="Tambah Bahan Baku" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
@ -29,7 +29,7 @@ const initialData = computed(() => ({
|
|||||||
|
|
||||||
<Head title="Ubah Bahan Baku" />
|
<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="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<h2 class="text-2xl font-bold tracking-tight">
|
<h2 class="text-2xl font-bold tracking-tight">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user