mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-29 18:28:28 -04:00
20 lines
558 B
React
20 lines
558 B
React
import React from 'react';
|
|
|
|
import NameFields from './NameFields';
|
|
|
|
// The alternate names on the crop form: plain text fields.
|
|
export default function AlternateNames({names}) {
|
|
return (
|
|
<NameFields
|
|
names={names}
|
|
field="alt_name"
|
|
noun="Alternate name"
|
|
buttonClass="altname"
|
|
help="Alternate name of crop."
|
|
renderInput={({id, name, value, onChange}) => (
|
|
<input type="text" className="form-control" id={id} name={name} value={value} onChange={(event) => onChange(event.target.value)} />
|
|
)}
|
|
/>
|
|
);
|
|
}
|