chore: TypeScript <Label /> (#10494)

* chore: TypeScript <Label />

* rebase

* chore: TypeScript <Label />

* rebase

* A bunch o' test fixes. One more to go!

* helper for mountying Emotional components with Enzyme

* asf license

* fixed last test, some linting

* improve the storybook

* Adressing comments

Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
Maxime Beauchemin
2020-08-06 22:33:07 -07:00
committed by GitHub
parent 96b9ba3364
commit 0bad77f0fe
33 changed files with 328 additions and 106 deletions

View File

@@ -18,9 +18,10 @@
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Label, Popover, OverlayTrigger } from 'react-bootstrap';
import { Popover, OverlayTrigger } from 'react-bootstrap';
import { decimal2sexagesimal } from 'geolib';
import Label from 'src/components/Label';
import FormLabel from 'src/components/FormLabel';
import TextControl from './TextControl';
import ControlHeader from '../ControlHeader';
@@ -104,7 +105,7 @@ export default class ViewportControl extends React.Component {
placement="right"
overlay={this.renderPopover()}
>
<Label style={{ cursor: 'pointer' }}>{this.renderLabel()}</Label>
<Label className="pointer">{this.renderLabel()}</Label>
</OverlayTrigger>
</div>
);