23 | {label} 24 |
25 | 29 |52 | Ping me at{" "} 53 | 59 | @zakiego 60 | {" "} 61 | for the secret code 🤣 62 |
63 |64 | And tell me why {`you're`} interested in trying it. Please note 65 | that this project is limited due to its potential for abuse. 66 |
67 |ERROR
; 162 | } 163 | 164 | if (children === undefined) { 165 | return-
; 166 | } 167 | 168 | return{children}
; 169 | }; 170 | -------------------------------------------------------------------------------- /components/pages/Predict.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable react-hooks/exhaustive-deps */ 2 | import { Combobox } from "~/components/UI"; 3 | import { PROVINSI } from "~/lib/provinsi"; 4 | import { KABUPATEN } from "~/lib/kabupaten"; 5 | import { KECAMATAN } from "~/lib/kecamatan"; 6 | import { GENDER } from "~/lib/gender"; 7 | import { Input } from "~/components/UI/Input"; 8 | import { useForm, useWatch } from "react-hook-form"; 9 | import { P, match } from "ts-pattern"; 10 | import { useEffect } from "react"; 11 | import { chunk, split } from "lodash"; 12 | import { chunkTwoChars } from "~/utils/string"; 13 | 14 | type ComboboxOption = { 15 | value: string; 16 | label: string; 17 | }; 18 | 19 | interface FormValues { 20 | provinsi: ComboboxOption; 21 | kabupaten: ComboboxOption; 22 | kecamatan: ComboboxOption; 23 | gender: ComboboxOption; 24 | birthDate: string; 25 | } 26 | 27 | export const Predict = () => { 28 | const { register, control, setValue, watch, resetField } = 29 | useForm{JSON.stringify(watchValues)}
*/} 109 |