Merge pull request 'Fix Route APBdes' (#12) from nico/18-nov-25 into staging
Reviewed-on: http://wibugit.wibudev.com/wibu/desa-darmasaba/pulls/12
This commit is contained in:
@@ -173,7 +173,7 @@ function EditAPBDes() {
|
|||||||
|
|
||||||
const success = await apbdesState.edit.update();
|
const success = await apbdesState.edit.update();
|
||||||
if (success) {
|
if (success) {
|
||||||
router.push('/admin/landing-page/APBDes');
|
router.push('/admin/landing-page/apbdes');
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Update error:', err);
|
console.error('Update error:', err);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ function DetailAPBDes() {
|
|||||||
apbdesState.delete.byId(selectedId);
|
apbdesState.delete.byId(selectedId);
|
||||||
setModalHapus(false);
|
setModalHapus(false);
|
||||||
setSelectedId(null);
|
setSelectedId(null);
|
||||||
router.push('/admin/landing-page/APBDes');
|
router.push('/admin/landing-page/apbdes');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ function DetailAPBDes() {
|
|||||||
|
|
||||||
<Button
|
<Button
|
||||||
color="green"
|
color="green"
|
||||||
onClick={() => router.push(`/admin/landing-page/APBDes/${data.id}/edit`)}
|
onClick={() => router.push(`/admin/landing-page/apbdes/${data.id}/edit`)}
|
||||||
variant="light"
|
variant="light"
|
||||||
radius="md"
|
radius="md"
|
||||||
size="md"
|
size="md"
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ function CreateAPBDes() {
|
|||||||
|
|
||||||
toast.success("Berhasil menambahkan APBDes");
|
toast.success("Berhasil menambahkan APBDes");
|
||||||
resetForm();
|
resetForm();
|
||||||
router.push("/admin/landing-page/APBDes");
|
router.push("/admin/landing-page/apbdes");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Gagal submit:", error);
|
console.error("Gagal submit:", error);
|
||||||
toast.error("Gagal menyimpan data");
|
toast.error("Gagal menyimpan data");
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function ListAPBDes({ search }: { search: string }) {
|
|||||||
leftSection={<IconPlus size={18} />}
|
leftSection={<IconPlus size={18} />}
|
||||||
color="blue"
|
color="blue"
|
||||||
variant="light"
|
variant="light"
|
||||||
onClick={() => router.push('/admin/landing-page/APBDes/create')}
|
onClick={() => router.push('/admin/landing-page/apbdes/create')}
|
||||||
>
|
>
|
||||||
Tambah Baru
|
Tambah Baru
|
||||||
</Button>
|
</Button>
|
||||||
@@ -127,7 +127,7 @@ function ListAPBDes({ search }: { search: string }) {
|
|||||||
variant="light"
|
variant="light"
|
||||||
color="blue"
|
color="blue"
|
||||||
leftSection={<IconDeviceImacCog size={14} />}
|
leftSection={<IconDeviceImacCog size={14} />}
|
||||||
onClick={() => router.push(`/admin/landing-page/APBDes/${item.id}`)}
|
onClick={() => router.push(`/admin/landing-page/apbdes/${item.id}`)}
|
||||||
fullWidth
|
fullWidth
|
||||||
>
|
>
|
||||||
Detail
|
Detail
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export const navBar = [
|
|||||||
{
|
{
|
||||||
id: "Landing_Page_5",
|
id: "Landing_Page_5",
|
||||||
name: "APBDes",
|
name: "APBDes",
|
||||||
path: "/admin/landing-page/APBDes"
|
path: "/admin/landing-page/apbdes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "Landing_Page_6",
|
id: "Landing_Page_6",
|
||||||
|
|||||||
Reference in New Issue
Block a user