Fix All Text Input User & Admin, fix deskripsi detail break word

This commit is contained in:
2025-09-29 14:06:04 +08:00
parent 2a26db6e17
commit dbd56a1493
319 changed files with 965 additions and 817 deletions

View File

@@ -140,7 +140,7 @@ function EditPerpustakaanDigital() {
<TextInput
label="Judul"
placeholder="Masukkan judul"
value={formData.judul}
defaultValue={formData.judul}
onChange={(e) => setFormData({ ...formData, judul: e.target.value })}
required
/>

View File

@@ -72,7 +72,7 @@ function DetailDataPerpustakaan() {
<Box>
<Text fz="lg" fw="bold">Deskripsi</Text>
<Text fz="md" dangerouslySetInnerHTML={{ __html: data.deskripsi || '-' }} />
<Text fz="md" style={{ wordBreak: "break-word", whiteSpace: "normal" }} dangerouslySetInnerHTML={{ __html: data.deskripsi || '-' }} />
</Box>
<Box>

View File

@@ -80,7 +80,7 @@ function CreateDataPerpustakaan() {
<TextInput
label={<Text fw="bold" fz="sm">Judul</Text>}
placeholder='Masukkan judul'
value={createState.create.form.judul}
defaultValue={createState.create.form.judul}
onChange={(val) => {
createState.create.form.judul = val.target.value;
}}

View File

@@ -76,7 +76,7 @@ function EditKategoriBuku() {
<TextInput
label="Nama Kategori Buku"
placeholder="Masukkan nama kategori buku"
value={formData.name}
defaultValue={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
required
/>

View File

@@ -49,7 +49,7 @@ function CreateKategoriBuku() {
<TextInput
label={<Text fw="bold" fz="sm">Nama Kategori Buku</Text>}
placeholder='Masukkan nama kategori buku'
value={createState.create.form.name}
defaultValue={createState.create.form.name}
onChange={(val) => {
createState.create.form.name = val.target.value;
}}