mirror of
https://github.com/maputnik/editor.git
synced 2026-09-11 14:57:26 +00:00
2fef0467b6
## Summary - convert all remaining Field components to const arrow functions - document the refactor in the CHANGELOG ## Testing - `npm run lint` - `npm run build` ------ https://chatgpt.com/codex/tasks/task_e_68684db1b6b88331837307a54e3f9dc1
19 lines
401 B
TypeScript
19 lines
401 B
TypeScript
import Block from './Block'
|
|
import InputAutocomplete, { InputAutocompleteProps } from './InputAutocomplete'
|
|
|
|
|
|
type FieldAutocompleteProps = InputAutocompleteProps & {
|
|
label?: string;
|
|
};
|
|
|
|
|
|
const FieldAutocomplete: React.FC<FieldAutocompleteProps> = (props) => {
|
|
return (
|
|
<Block label={props.label}>
|
|
<InputAutocomplete {...props} />
|
|
</Block>
|
|
);
|
|
};
|
|
|
|
export default FieldAutocomplete;
|