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,16 +18,10 @@
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
Row,
Col,
Button,
Label,
OverlayTrigger,
Popover,
} from 'react-bootstrap';
import { Row, Col, Button, OverlayTrigger, Popover } from 'react-bootstrap';
import { t } from '@superset-ui/translation';
import Label from 'src/components/Label';
import ControlHeader from '../ControlHeader';
import SelectControl from './SelectControl';
import PopoverSection from '../../../components/PopoverSection';
@@ -235,9 +229,7 @@ export default class SpatialControl extends React.Component {
placement="right"
overlay={this.renderPopover()}
>
<Label style={{ cursor: 'pointer' }}>
{this.renderLabelContent()}
</Label>
<Label className="pointer">{this.renderLabelContent()}</Label>
</OverlayTrigger>
</div>
);