Fix Route APBdes

This commit is contained in:
2025-11-18 14:27:53 +08:00
parent 0feeb4de93
commit 6c32f3ebdb
5 changed files with 7 additions and 7 deletions

View File

@@ -173,7 +173,7 @@ function EditAPBDes() {
const success = await apbdesState.edit.update();
if (success) {
router.push('/admin/landing-page/APBDes');
router.push('/admin/landing-page/apbdes');
}
} catch (err) {
console.error('Update error:', err);

View File

@@ -45,7 +45,7 @@ function DetailAPBDes() {
apbdesState.delete.byId(selectedId);
setModalHapus(false);
setSelectedId(null);
router.push('/admin/landing-page/APBDes');
router.push('/admin/landing-page/apbdes');
}
};
@@ -160,7 +160,7 @@ function DetailAPBDes() {
<Button
color="green"
onClick={() => router.push(`/admin/landing-page/APBDes/${data.id}/edit`)}
onClick={() => router.push(`/admin/landing-page/apbdes/${data.id}/edit`)}
variant="light"
radius="md"
size="md"

View File

@@ -107,7 +107,7 @@ function CreateAPBDes() {
toast.success("Berhasil menambahkan APBDes");
resetForm();
router.push("/admin/landing-page/APBDes");
router.push("/admin/landing-page/apbdes");
} catch (error) {
console.error("Gagal submit:", error);
toast.error("Gagal menyimpan data");

View File

@@ -71,7 +71,7 @@ function ListAPBDes({ search }: { search: string }) {
leftSection={<IconPlus size={18} />}
color="blue"
variant="light"
onClick={() => router.push('/admin/landing-page/APBDes/create')}
onClick={() => router.push('/admin/landing-page/apbdes/create')}
>
Tambah Baru
</Button>
@@ -127,7 +127,7 @@ function ListAPBDes({ search }: { search: string }) {
variant="light"
color="blue"
leftSection={<IconDeviceImacCog size={14} />}
onClick={() => router.push(`/admin/landing-page/APBDes/${item.id}`)}
onClick={() => router.push(`/admin/landing-page/apbdes/${item.id}`)}
fullWidth
>
Detail

View File

@@ -27,7 +27,7 @@ export const navBar = [
{
id: "Landing_Page_5",
name: "APBDes",
path: "/admin/landing-page/APBDes"
path: "/admin/landing-page/apbdes"
},
{
id: "Landing_Page_6",