refactor: remove layout breadcrumbs from multiple components for cleaner code

This commit is contained in:
Yoga Pangestu 2026-08-01 12:14:13 +07:00
parent 4a4c4ccad0
commit e05a0c7066
25 changed files with 0 additions and 329 deletions

View File

@ -743,16 +743,3 @@ export default function CashAccountIndex({
</>
);
}
CashAccountIndex.layout = {
breadcrumbs: [
{
title: 'Keuangan',
href: cashAccountIndex(),
},
{
title: 'Kas Toko',
href: cashAccountIndex(),
},
],
};

View File

@ -471,16 +471,3 @@ export default function EmployeeAdvanceIndex({ employeeAdvances }: Props) {
</>
);
}
EmployeeAdvanceIndex.layout = {
breadcrumbs: [
{
title: 'Keuangan',
href: employeeAdvanceIndex(),
},
{
title: 'Kasbon',
href: employeeAdvanceIndex(),
},
],
};

View File

@ -469,16 +469,3 @@ export default function ExpenseIndex({ expenses }: Props) {
</>
);
}
ExpenseIndex.layout = {
breadcrumbs: [
{
title: 'Keuangan',
href: expenseIndex(),
},
{
title: 'Pengeluaran',
href: expenseIndex(),
},
],
};

View File

@ -183,16 +183,3 @@ export default function PayrollPeriodIndex({ payrollPeriods }: Props) {
</>
);
}
PayrollPeriodIndex.layout = {
breadcrumbs: [
{
title: 'Keuangan',
href: payrollPeriodsIndex(),
},
{
title: 'Gaji',
href: payrollPeriodsIndex(),
},
],
};

View File

@ -371,20 +371,3 @@ export default function PayrollPeriodShow({ payrollPeriod }: Props) {
</>
);
}
PayrollPeriodShow.layout = {
breadcrumbs: [
{
title: 'Keuangan',
href: payrollPeriodsIndex(),
},
{
title: 'Gaji',
href: payrollPeriodsIndex(),
},
{
title: 'Detail',
href: '#',
},
],
};

View File

@ -742,16 +742,3 @@ export default function AttendanceIndex({
</>
);
}
AttendanceIndex.layout = {
breadcrumbs: [
{
title: 'HR',
href: attendanceIndex(),
},
{
title: 'Presensi',
href: attendanceIndex(),
},
],
};

View File

@ -294,20 +294,3 @@ export default function EmployeeCreate() {
</>
);
}
EmployeeCreate.layout = {
breadcrumbs: [
{
title: 'HR',
href: employeeIndex.url(),
},
{
title: 'Pegawai',
href: employeeIndex.url(),
},
{
title: 'Tambah',
href: '#',
},
],
};

View File

@ -342,20 +342,3 @@ export default function EmployeeEdit({ employee }: Props) {
</>
);
}
EmployeeEdit.layout = {
breadcrumbs: [
{
title: 'HR',
href: employeeIndex.url(),
},
{
title: 'Pegawai',
href: employeeIndex.url(),
},
{
title: 'Edit',
href: '#',
},
],
};

View File

@ -343,16 +343,3 @@ export default function EmployeeIndex({ employees, filters }: Props) {
</>
);
}
EmployeeIndex.layout = {
breadcrumbs: [
{
title: 'HR',
href: employeeIndex.url(),
},
{
title: 'Pegawai',
href: employeeIndex.url(),
},
],
};

View File

@ -595,16 +595,3 @@ export default function LeaveRequestIndex({ leaveRequests, filters }: Props) {
</>
);
}
LeaveRequestIndex.layout = {
breadcrumbs: [
{
title: 'HR',
href: leaveRequestIndex(),
},
{
title: 'Cuti',
href: leaveRequestIndex(),
},
],
};

View File

@ -312,16 +312,3 @@ export default function CategoryIndex({ categories, highlight }: Props) {
</>
);
}
CategoryIndex.layout = {
breadcrumbs: [
{
title: 'Master',
href: categoryIndex(),
},
{
title: 'Kategori',
href: categoryIndex(),
},
],
};

View File

@ -354,16 +354,3 @@ export default function CustomerIndex({ customers }: Props) {
</>
);
}
CustomerIndex.layout = {
breadcrumbs: [
{
title: 'Master',
href: customerIndex(),
},
{
title: 'Customer',
href: customerIndex(),
},
],
};

View File

@ -788,20 +788,3 @@ export default function ProductCreate({ categories }: Props) {
</>
);
}
ProductCreate.layout = {
breadcrumbs: [
{
title: 'Master',
href: productIndex.url(),
},
{
title: 'Produk',
href: productIndex.url(),
},
{
title: 'Tambah',
href: '#',
},
],
};

View File

@ -864,20 +864,3 @@ export default function ProductEdit({ product, categories }: Props) {
</>
);
}
ProductEdit.layout = {
breadcrumbs: [
{
title: 'Master',
href: productIndex.url(),
},
{
title: 'Produk',
href: productIndex.url(),
},
{
title: 'Edit',
href: '#',
},
],
};

View File

@ -434,16 +434,3 @@ export default function ProductIndex({ products, filters }: Props) {
</>
);
}
ProductIndex.layout = {
breadcrumbs: [
{
title: 'Master',
href: productIndex.url(),
},
{
title: 'Produk',
href: productIndex.url(),
},
],
};

View File

@ -354,16 +354,3 @@ export default function SupplierIndex({ suppliers }: Props) {
</>
);
}
SupplierIndex.layout = {
breadcrumbs: [
{
title: 'Master',
href: supplierIndex(),
},
{
title: 'Supplier',
href: supplierIndex(),
},
],
};

View File

@ -161,20 +161,3 @@ export default function RoleCreate({ permissions }: Props) {
</>
);
}
RoleCreate.layout = {
breadcrumbs: [
{
title: 'Pengaturan',
href: '/admin/settings',
},
{
title: 'Role & Permission',
href: rolesIndex.url(),
},
{
title: 'Tambah',
href: '#',
},
],
};

View File

@ -177,20 +177,3 @@ export default function RoleEdit({ role, permissions }: Props) {
</>
);
}
RoleEdit.layout = {
breadcrumbs: [
{
title: 'Pengaturan',
href: '/admin/settings',
},
{
title: 'Role & Permission',
href: rolesIndex.url(),
},
{
title: 'Edit',
href: '#',
},
],
};

View File

@ -139,16 +139,3 @@ export default function RoleIndex({ roles }: Props) {
</>
);
}
RoleIndex.layout = {
breadcrumbs: [
{
title: 'Pengaturan',
href: '/admin/settings',
},
{
title: 'Role & Permission',
href: rolesIndex.url(),
},
],
};

View File

@ -900,12 +900,3 @@ export default function AdminSettings({
</>
);
}
AdminSettings.layout = {
breadcrumbs: [
{
title: 'Pengaturan',
href: '/admin/settings',
},
],
};

View File

@ -25,12 +25,3 @@ export default function Dashboard() {
</>
);
}
Dashboard.layout = {
breadcrumbs: [
{
title: 'Dashboard',
href: dashboard(),
},
],
};

View File

@ -15,12 +15,3 @@ export default function Appearance() {
</>
);
}
Appearance.layout = {
breadcrumbs: [
{
title: 'Tampilan',
href: editAppearance(),
},
],
};

View File

@ -305,12 +305,3 @@ export default function Permissions() {
</>
);
}
Permissions.layout = {
breadcrumbs: [
{
title: 'Izin',
href: edit(),
},
],
};

View File

@ -206,12 +206,3 @@ export default function Profile({ user }: Props) {
</>
);
}
Profile.layout = {
breadcrumbs: [
{
title: 'Profil',
href: edit(),
},
],
};

View File

@ -128,12 +128,3 @@ export default function Security(props: Props) {
</>
);
}
Security.layout = {
breadcrumbs: [
{
title: 'Kata Sandi',
href: edit(),
},
],
};