Fix Route APBdes #12
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user