mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
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:
committed by
GitHub
parent
96b9ba3364
commit
0bad77f0fe
@@ -18,8 +18,9 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Label, Panel } from 'react-bootstrap';
|
||||
import { Panel } from 'react-bootstrap';
|
||||
|
||||
import Label from 'src/components/Label';
|
||||
import TextControl from './TextControl';
|
||||
import MetricsControl from './MetricsControl';
|
||||
import ControlHeader from '../ControlHeader';
|
||||
@@ -103,7 +104,7 @@ export default class FixedOrMetricControl extends React.Component {
|
||||
return (
|
||||
<div>
|
||||
<ControlHeader {...this.props} />
|
||||
<Label style={{ cursor: 'pointer' }} onClick={this.toggle}>
|
||||
<Label className="pointer" onClick={this.toggle}>
|
||||
{this.state.type === controlTypes.fixed && (
|
||||
<span>{this.state.fixedValue}</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user