mirror of
https://github.com/harness/drone.git
synced 2025-05-16 17:09:58 +08:00
improve documentation
This commit is contained in:
parent
8fdcecf75c
commit
4736b827ad
@ -18,12 +18,19 @@ interface MultiListProps {
|
||||
readOnly?: boolean
|
||||
}
|
||||
|
||||
/* Allows user to create following structure:
|
||||
<field-name>:
|
||||
- <field-value-1>,
|
||||
- <field-value-2>,
|
||||
...
|
||||
*/
|
||||
export const MultiList = ({ name, label, readOnly, formik }: MultiListConnectedProps): JSX.Element => {
|
||||
const { getString } = useStrings()
|
||||
const [valueMap, setValueMap] = useState<Map<string, string>>(new Map<string, string>([]))
|
||||
/*
|
||||
<field-name-1>: <field-value-1>,
|
||||
<field-name-2>: <field-value-2>
|
||||
<field-name-2>: <field-value-2>,
|
||||
...
|
||||
*/
|
||||
const counter = useRef<number>(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user