Fix All Text Input User & Admin, fix deskripsi detail break word
This commit is contained in:
@@ -120,7 +120,7 @@ function EditInfoWabahPenyakit() {
|
||||
>
|
||||
<Stack gap="md">
|
||||
<TextInput
|
||||
value={formData.name}
|
||||
defaultValue={formData.name}
|
||||
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
|
||||
label="Judul"
|
||||
placeholder="Masukkan judul"
|
||||
@@ -128,7 +128,7 @@ function EditInfoWabahPenyakit() {
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
value={formData.deskripsiSingkat}
|
||||
defaultValue={formData.deskripsiSingkat}
|
||||
onChange={(e) => setFormData({ ...formData, deskripsiSingkat: e.target.value })}
|
||||
label="Deskripsi Singkat"
|
||||
placeholder="Masukkan deskripsi singkat"
|
||||
|
||||
@@ -84,7 +84,7 @@ function DetailInfoWabahPenyakit() {
|
||||
|
||||
<Box>
|
||||
<Text fz="lg" fw="bold">Deskripsi Singkat</Text>
|
||||
<Text fz="md" c="dimmed">{data.deskripsiSingkat || '-'}</Text>
|
||||
<Text fz="md" c="dimmed" style={{ wordBreak: "break-word", whiteSpace: "normal" }}>{data.deskripsiSingkat || '-'}</Text>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
@@ -93,6 +93,7 @@ function DetailInfoWabahPenyakit() {
|
||||
fz="md"
|
||||
c="dimmed"
|
||||
dangerouslySetInnerHTML={{ __html: data.deskripsiLengkap }}
|
||||
style={{ wordBreak: "break-word", whiteSpace: "normal" }}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ function CreateInfoWabahPenyakit() {
|
||||
>
|
||||
<Stack gap="md">
|
||||
<TextInput
|
||||
value={infoWabahPenyakitState.create.form.name}
|
||||
defaultValue={infoWabahPenyakitState.create.form.name}
|
||||
onChange={(val) => {
|
||||
infoWabahPenyakitState.create.form.name = val.target.value;
|
||||
}}
|
||||
@@ -101,7 +101,7 @@ function CreateInfoWabahPenyakit() {
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
value={infoWabahPenyakitState.create.form.deskripsiSingkat}
|
||||
defaultValue={infoWabahPenyakitState.create.form.deskripsiSingkat}
|
||||
onChange={(val) => {
|
||||
infoWabahPenyakitState.create.form.deskripsiSingkat = val.target.value;
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user