Fix Admin Menu SDGs Desa & APBdes Desa, Fix UI IMage Layanan Landing Page & Layanan Desa
This commit is contained in:
@@ -107,7 +107,7 @@ function EditAPBDes() {
|
||||
|
||||
await apbdesState.edit.update();
|
||||
toast.success('APBDes berhasil diperbarui!');
|
||||
router.push('/admin/landing-page/APBDes');
|
||||
router.push('/admin/landing-page/apbdes');
|
||||
} catch (error) {
|
||||
console.error('Error updating APBDes:', error);
|
||||
toast.error('Terjadi kesalahan saat memperbarui APBDes');
|
||||
|
||||
@@ -28,7 +28,7 @@ function DetailAPBDes() {
|
||||
apbdesState.delete.byId(selectedId)
|
||||
setModalHapus(false)
|
||||
setSelectedId(null)
|
||||
router.push("/admin/landing-page/APBDes")
|
||||
router.push("/admin/landing-page/apbdes")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ function DetailAPBDes() {
|
||||
<Tooltip label="Edit APBDes" withArrow position="top">
|
||||
<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"
|
||||
|
||||
@@ -73,7 +73,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");
|
||||
|
||||
@@ -62,7 +62,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>
|
||||
@@ -110,7 +110,7 @@ function ListAPBDes({ search }: { search: string }) {
|
||||
<Button
|
||||
variant="light"
|
||||
color="blue"
|
||||
onClick={() => router.push(`/admin/landing-page/APBDes/${item.id}`)}
|
||||
onClick={() => router.push(`/admin/landing-page/apbdes/${item.id}`)}
|
||||
fullWidth
|
||||
>
|
||||
<IconDeviceImacCog size={20} />
|
||||
|
||||
Reference in New Issue
Block a user