mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
23 lines
512 B
JavaScript
23 lines
512 B
JavaScript
import React, { PropTypes } from 'react';
|
|
import { FormControl } from 'react-bootstrap';
|
|
|
|
const propTypes = {
|
|
onChange: PropTypes.func,
|
|
value: PropTypes.oneOfType([
|
|
PropTypes.string,
|
|
PropTypes.number,
|
|
]),
|
|
};
|
|
|
|
const defaultProps = {
|
|
onChange: () => {},
|
|
};
|
|
|
|
export default function HiddenControl(props) {
|
|
// This wouldn't be necessary but might as well
|
|
return <FormControl type="hidden" value={props.value} />;
|
|
}
|
|
|
|
HiddenControl.propTypes = propTypes;
|
|
HiddenControl.defaultProps = defaultProps;
|