upd: update fitur group

Deskripsi:
- update pembaruan api terbaru
- pengaplikasian api, consume api

No Issues
This commit is contained in:
amel
2024-08-08 12:26:48 +08:00
parent cf1e2fc622
commit cd35a43f88
11 changed files with 47 additions and 168 deletions

View File

@@ -36,6 +36,9 @@ export const funEditStatusGroup = async (path: string, data: IStatusGroup) => {
};
export const funEditGroup = async (path: string, data: IFormGroup) => {
if (data.name.length < 3)
return { success: false, message: 'Minimal 3 karakter' }
const response = await fetch(`/api/group/${path}`, {
method: "PUT",
headers: {