fix: admin app info
deskripsi: - penerapan filter jenis kelamin pada forum
This commit is contained in:
@@ -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" },
|
||||
];
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user