Skip to content

Commit 29c6b2f

Browse files
Make Dashboard user edit description input field a textarea (#2962)
1 parent f5bc91c commit 29c6b2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/dashboard/src/app/(internal)/brukere/[id]/edit-form.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createImageInput } from "@/components/forms/ImageInput"
44
import { createSelectInput } from "@/components/forms/SelectInput"
55
import { createTextInput } from "@/components/forms/TextInput"
66
import { USER_IMAGE_MAX_SIZE_KIB, type UserWrite, UserWriteSchema } from "@dotkomonline/types"
7+
import { createTextareaInput } from "@/components/forms/TextareaInput"
78

89
interface UseUserProfileWriteFormProps {
910
onSubmit(data: UserWrite): void
@@ -45,9 +46,12 @@ export const useUserProfileEditForm = ({ defaultValues, onSubmit, label = "Bruke
4546
{ label: "Ikke oppgitt", value: "Ikke oppgitt" },
4647
],
4748
}),
48-
biography: createTextInput({
49+
biography: createTextareaInput({
4950
label: "Biografi",
5051
placeholder: "Skriv noe om brukeren...",
52+
minRows: 2,
53+
maxRows: 6,
54+
autosize: true,
5155
}),
5256
dietaryRestrictions: createTextInput({
5357
label: "Allergier",

0 commit comments

Comments
 (0)