fix: admin app info

deskripsi:
- penerapan filter jenis kelamin pada forum
This commit is contained in:
2025-05-19 17:42:42 +08:00
parent 0cbcee87bd
commit 117dbe6157
12 changed files with 139 additions and 133 deletions

View File

@@ -1,4 +1,4 @@
export const masterJenisKelamin = [
{ value: "Laki-laki", label: "Laki-laki" },
{ value: "Perempuan", label: "Perempuan" },
{ value: "laki-laki", label: "Laki-laki" },
{ value: "perempuan", label: "Perempuan" },
];

View File

@@ -1,4 +1,4 @@
export const apiGetStickerForUser = async ({ emotion }: { emotion?: string }) => {
export const apiGetStickerForUser = async ({ gender }: { gender: string }) => {
try {
// Fetch token from cookie
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
@@ -7,7 +7,7 @@ export const apiGetStickerForUser = async ({ emotion }: { emotion?: string })
return null;
}
const response = await fetch(`/api/sticker?emotion=${emotion || ""}`, {
const response = await fetch(`/api/sticker?gender=${gender}`, {
method: "GET",
headers: {
"Content-Type": "application/json",