mirror of
https://github.com/maputnik/editor.git
synced 2026-01-07 14:00:01 +00:00
This is to continue the work of migrating all the jsx files into tsx files. The MO is basically described here: #848. About 7 files to go...
28 lines
605 B
TypeScript
28 lines
605 B
TypeScript
import React from 'react'
|
|
|
|
import {latest} from '@maplibre/maplibre-gl-style-spec'
|
|
import Block from './Block'
|
|
import FieldString from './FieldString'
|
|
|
|
type BlockIdProps = {
|
|
value: string
|
|
wdKey: string
|
|
onChange(...args: unknown[]): unknown
|
|
error?: unknown[]
|
|
};
|
|
|
|
export default class BlockId extends React.Component<BlockIdProps> {
|
|
render() {
|
|
return <Block label={"ID"} fieldSpec={latest.layer.id}
|
|
data-wd-key={this.props.wdKey}
|
|
error={this.props.error}
|
|
>
|
|
<FieldString
|
|
value={this.props.value}
|
|
onChange={this.props.onChange}
|
|
/>
|
|
</Block>
|
|
}
|
|
}
|
|
|