refactor: remove layout breadcrumbs from multiple components for cleaner code
This commit is contained in:
parent
4a4c4ccad0
commit
e05a0c7066
@ -743,16 +743,3 @@ export default function CashAccountIndex({
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
CashAccountIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Keuangan',
|
||||
href: cashAccountIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Kas Toko',
|
||||
href: cashAccountIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -471,16 +471,3 @@ export default function EmployeeAdvanceIndex({ employeeAdvances }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
EmployeeAdvanceIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Keuangan',
|
||||
href: employeeAdvanceIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Kasbon',
|
||||
href: employeeAdvanceIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -469,16 +469,3 @@ export default function ExpenseIndex({ expenses }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
ExpenseIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Keuangan',
|
||||
href: expenseIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Pengeluaran',
|
||||
href: expenseIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -183,16 +183,3 @@ export default function PayrollPeriodIndex({ payrollPeriods }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
PayrollPeriodIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Keuangan',
|
||||
href: payrollPeriodsIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Gaji',
|
||||
href: payrollPeriodsIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -371,20 +371,3 @@ export default function PayrollPeriodShow({ payrollPeriod }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
PayrollPeriodShow.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Keuangan',
|
||||
href: payrollPeriodsIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Gaji',
|
||||
href: payrollPeriodsIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Detail',
|
||||
href: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -742,16 +742,3 @@ export default function AttendanceIndex({
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
AttendanceIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'HR',
|
||||
href: attendanceIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Presensi',
|
||||
href: attendanceIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -294,20 +294,3 @@ export default function EmployeeCreate() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
EmployeeCreate.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'HR',
|
||||
href: employeeIndex.url(),
|
||||
},
|
||||
{
|
||||
title: 'Pegawai',
|
||||
href: employeeIndex.url(),
|
||||
},
|
||||
{
|
||||
title: 'Tambah',
|
||||
href: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -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: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -343,16 +343,3 @@ export default function EmployeeIndex({ employees, filters }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
EmployeeIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'HR',
|
||||
href: employeeIndex.url(),
|
||||
},
|
||||
{
|
||||
title: 'Pegawai',
|
||||
href: employeeIndex.url(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -595,16 +595,3 @@ export default function LeaveRequestIndex({ leaveRequests, filters }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
LeaveRequestIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'HR',
|
||||
href: leaveRequestIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Cuti',
|
||||
href: leaveRequestIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -312,16 +312,3 @@ export default function CategoryIndex({ categories, highlight }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
CategoryIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Master',
|
||||
href: categoryIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Kategori',
|
||||
href: categoryIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -354,16 +354,3 @@ export default function CustomerIndex({ customers }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
CustomerIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Master',
|
||||
href: customerIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Customer',
|
||||
href: customerIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -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: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -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: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -434,16 +434,3 @@ export default function ProductIndex({ products, filters }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
ProductIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Master',
|
||||
href: productIndex.url(),
|
||||
},
|
||||
{
|
||||
title: 'Produk',
|
||||
href: productIndex.url(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -354,16 +354,3 @@ export default function SupplierIndex({ suppliers }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
SupplierIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Master',
|
||||
href: supplierIndex(),
|
||||
},
|
||||
{
|
||||
title: 'Supplier',
|
||||
href: supplierIndex(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -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: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -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: '#',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -139,16 +139,3 @@ export default function RoleIndex({ roles }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
RoleIndex.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Pengaturan',
|
||||
href: '/admin/settings',
|
||||
},
|
||||
{
|
||||
title: 'Role & Permission',
|
||||
href: rolesIndex.url(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -900,12 +900,3 @@ export default function AdminSettings({
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
AdminSettings.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Pengaturan',
|
||||
href: '/admin/settings',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -25,12 +25,3 @@ export default function Dashboard() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Dashboard.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
href: dashboard(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -15,12 +15,3 @@ export default function Appearance() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Appearance.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Tampilan',
|
||||
href: editAppearance(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -305,12 +305,3 @@ export default function Permissions() {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Permissions.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Izin',
|
||||
href: edit(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -206,12 +206,3 @@ export default function Profile({ user }: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Profile.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Profil',
|
||||
href: edit(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -128,12 +128,3 @@ export default function Security(props: Props) {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Security.layout = {
|
||||
breadcrumbs: [
|
||||
{
|
||||
title: 'Kata Sandi',
|
||||
href: edit(),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user