schema prisma

deskripsi:
- penambahan jenis kelamin pada db sticker
This commit is contained in:
2025-05-19 15:09:52 +08:00
parent b1068933c2
commit 752ab80de0
5 changed files with 17 additions and 35 deletions

View File

@@ -9,6 +9,7 @@ import { emailRegex } from "../../component/regular_expressions";
import { Profile_ComponentCreateNewProfile } from "../_component";
import Profile_ViewUploadBackground from "./view_upload_background";
import Profile_ViewUploadFoto from "./view_upload_foto";
import { masterJenisKelamin } from "@/app_modules/_global/lib/master_jenis_kelamin";
export default function CreateProfile() {
const [filePP, setFilePP] = useState<File | null>(null);
@@ -111,10 +112,7 @@ export default function CreateProfile() {
withAsterisk
label="Jenis Kelamin"
placeholder="Pilih satu"
data={[
{ value: "Laki-laki", label: "Laki-laki" },
{ value: "Perempuan", label: "Perempuan" },
]}
data={masterJenisKelamin}
onChange={(val) => {
setValue({
...value,

View File

@@ -18,6 +18,7 @@ import {
apiUpdateProfile,
} from "../lib/api_fetch_profile";
import { MODEL_PROFILE } from "../model/interface";
import { masterJenisKelamin } from "@/app_modules/_global/lib/master_jenis_kelamin";
export default function EditProfile() {
const router = useRouter();
@@ -211,10 +212,7 @@ export default function EditProfile() {
withAsterisk
label="Jenis Kelamin"
value={data?.jenisKelamin}
data={[
{ value: "Laki-laki", label: "Laki-laki" },
{ value: "Perempuan", label: "Perempuan" },
]}
data={masterJenisKelamin}
onChange={(val: any) => {
setData({
...data,