feat : update profile
This commit is contained in:
@@ -273,8 +273,8 @@ export default function CreateMember() {
|
||||
onBlur={() => setTouched({ ...touched, nik: true })}
|
||||
error={
|
||||
touched.nik && (
|
||||
listData.nik == "" ? "NIK Tidak Boleh Kosong" :
|
||||
listData.nik.length < 16 ? "NIK Harus 16 Karakter" : null
|
||||
listData.nik === "" ? "NIK Tidak Boleh Kosong" :
|
||||
listData.nik.length !== 16 ? "NIK Harus 16 Karakter" : null
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -250,10 +250,10 @@ export default function EditMember({ id }: { id: string }) {
|
||||
onBlur={() => setTouched({ ...touched, nik: true })}
|
||||
error={
|
||||
touched.nik && (
|
||||
data.nik == "" ? "NIK Tidak Boleh Kosong" :
|
||||
data.nik.length < 16 ? "NIK Harus 16 Karakter" : null
|
||||
data.nik === "" ? "NIK Tidak Boleh Kosong" :
|
||||
data.nik.length !== 16 ? "NIK Harus 16 Karakter" : null
|
||||
)
|
||||
}
|
||||
}
|
||||
/>
|
||||
<TextInput
|
||||
size="md" type="text" radius={30} placeholder="Nama" withAsterisk label="Nama" w={"100%"}
|
||||
|
||||
Reference in New Issue
Block a user