From 22cb76591b26bd7d8f17b62dcc2948a8bad9df09 Mon Sep 17 00:00:00 2001 From: Malin Svenberg Date: Wed, 3 May 2023 16:11:19 +0200 Subject: [PATCH] feat: adds required symbol for name of folder, document and etherpad --- src/components/item/form/BaseItemForm.tsx | 9 ++++++++- src/components/item/form/DocumentForm.tsx | 1 + src/components/item/form/EtherpadForm.tsx | 1 + src/components/item/form/FolderForm.tsx | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/item/form/BaseItemForm.tsx b/src/components/item/form/BaseItemForm.tsx index dfb3aa238..8b9370b70 100644 --- a/src/components/item/form/BaseItemForm.tsx +++ b/src/components/item/form/BaseItemForm.tsx @@ -13,9 +13,15 @@ type Props = { updatedProperties: Partial>; onChange: (props: Partial) => void; item: Partial; + required?: boolean; }; -const BaseForm: FC = ({ onChange, item, updatedProperties }) => { +const BaseForm: FC = ({ + onChange, + item, + required, + updatedProperties, +}) => { const { t: translateBuilder } = useBuilderTranslation(); const handleNameInput = (event: ChangeEvent<{ value: string }>) => { @@ -26,6 +32,7 @@ const BaseForm: FC = ({ onChange, item, updatedProperties }) => { diff --git a/src/components/item/form/EtherpadForm.tsx b/src/components/item/form/EtherpadForm.tsx index 47f006129..a08d876be 100644 --- a/src/components/item/form/EtherpadForm.tsx +++ b/src/components/item/form/EtherpadForm.tsx @@ -23,6 +23,7 @@ const useEtherpadForm = (): { padName: string; EtherpadForm: FC } => {