UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

20 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const react_redux_1 = require("react-redux"); const cosmoui_1 = require("cosmoui"); const selectors_1 = require("../../selectors"); const constants_1 = require("../../constants"); class JobLabelRegionFormComponent extends React.Component { render() { return (React.createElement(cosmoui_1.Form, { name: constants_1.JOB_LABEL_REGION_FORM_KEY, style: { width: '200px' } }, React.createElement(cosmoui_1.FormGroup, { label: "Choose Region *" }, this.props.options.length > 0 && React.createElement(cosmoui_1.Select, { name: constants_1.JOB_LABEL_REGION_FORM_SELECT_KEY, value: this.props.options[0], options: this.props.options })))); } } const mapStateToProps = (state, ownProps) => ({ options: selectors_1.getRegionSelectOptions(state), }); const mapDispatchToProps = {}; exports.JobLabelRegionForm = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(JobLabelRegionFormComponent); //# sourceMappingURL=job-label-region-form.js.map