mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-15 08:51:19 +01:00
Allow passing elems to DocLabel
This commit is contained in:
parent
0f272e233b
commit
ec9fc8f6ad
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@ import { margins, fontSizes } from '../../config/scales.js'
|
||||||
|
|
||||||
export default class DocLabel extends React.Component {
|
export default class DocLabel extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
label: React.PropTypes.string.isRequired,
|
label: React.PropTypes.oneOfType([
|
||||||
|
React.PropTypes.object,
|
||||||
|
React.PropTypes.string
|
||||||
|
]).isRequired,
|
||||||
doc: React.PropTypes.string.isRequired,
|
doc: React.PropTypes.string.isRequired,
|
||||||
style: React.PropTypes.object,
|
style: React.PropTypes.object,
|
||||||
cursorTargetStyle: React.PropTypes.object,
|
cursorTargetStyle: React.PropTypes.object,
|
||||||
|
|
Loading…
Reference in a new issue