mirror of
https://github.com/maputnik/editor.git
synced 2026-02-10 22:50:00 +00:00
In this PR I have changed some of the jsx files to tsx file. I'm starting off with the "leafs" so that migration of the rest will be easier, hopefully. What I'm basically doing is taking a jsx file, copy paste it into: https://mskelton.dev/ratchet And after that I'm fixing the types as needed. It's not a very long process. Hopefully more PRs will follow and this will be over soon. I don't plan to migrate the storybook as I generally don't understand why is it useful, I'll open an issue to see if anyone thinks differently.
20 lines
441 B
TypeScript
20 lines
441 B
TypeScript
import React from 'react'
|
|
import InputEnum, {InputEnumProps} from './InputEnum'
|
|
import Fieldset from './Fieldset';
|
|
|
|
|
|
type FieldEnumProps = InputEnumProps & {
|
|
label?: string;
|
|
fieldSpec?: {
|
|
doc: string
|
|
}
|
|
};
|
|
|
|
|
|
export default class FieldEnum extends React.Component<FieldEnumProps> {
|
|
render() {
|
|
return <Fieldset label={this.props.label} fieldSpec={this.props.fieldSpec}>
|
|
<InputEnum {...this.props} />
|
|
</Fieldset>
|
|
}
|
|
} |