From 4736b827ad5e49512095379f96e468e01ba9a6d8 Mon Sep 17 00:00:00 2001 From: Vardan Bansal Date: Thu, 28 Sep 2023 14:04:21 -0700 Subject: [PATCH] improve documentation --- web/src/components/MultiList/MultiList.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/components/MultiList/MultiList.tsx b/web/src/components/MultiList/MultiList.tsx index 7783fa247..2a9686bc4 100644 --- a/web/src/components/MultiList/MultiList.tsx +++ b/web/src/components/MultiList/MultiList.tsx @@ -18,12 +18,19 @@ interface MultiListProps { readOnly?: boolean } +/* Allows user to create following structure: +: + - , + - , + ... + */ export const MultiList = ({ name, label, readOnly, formik }: MultiListConnectedProps): JSX.Element => { const { getString } = useStrings() const [valueMap, setValueMap] = useState>(new Map([])) /* : , - : + : , + ... */ const counter = useRef(0)