@plusscommunities/pluss-maintenance-web-a 1.3.1-beta.0 → 1.3.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import moment from 'moment';
8
8
  import { Icon } from '@plusscommunities/pluss-icons';
9
9
  import * as PlussCore from '@plusscommunities/pluss-core-web';
10
10
  import { PERMISSION_CATEGORIES, IMPORTANCE_LEVELS, Colours as Colours$4 } from '@plusscommunities/pluss-core-web';
11
- import { Table, MenuItem, DropdownButton } from 'react-bootstrap';
11
+ import { Table } from 'react-bootstrap';
12
12
  import { Link } from 'react-router-dom';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
14
  import Textarea from 'react-textarea-autosize';
@@ -4688,21 +4688,14 @@ class AddJob extends Component {
4688
4688
  }, 100);
4689
4689
  }
4690
4690
  }
4691
- renderTypeOptions() {
4691
+ getTypeOptions() {
4692
4692
  var {
4693
- types,
4694
- type
4693
+ types
4695
4694
  } = this.state;
4696
- return types.map(ev => {
4697
- if (ev != null) {
4698
- return /*#__PURE__*/jsx(MenuItem, {
4699
- eventKey: ev.typeName,
4700
- active: type === ev.typeName,
4701
- children: ev.typeName
4702
- }, ev.typeName);
4703
- }
4704
- return null;
4705
- });
4695
+ return types.filter(Boolean).map(ev => ({
4696
+ Key: ev.typeName,
4697
+ Title: ev.typeName
4698
+ }));
4706
4699
  }
4707
4700
  renderSuccess() {
4708
4701
  if (!this.state.success) return null;
@@ -5179,23 +5172,14 @@ class AddJob extends Component {
5179
5172
  showError: () => {
5180
5173
  return this.state.showWarnings && _.isEmpty(this.state.room);
5181
5174
  }
5182
- }), /*#__PURE__*/jsxs("div", {
5183
- iconStyle: {
5175
+ }), /*#__PURE__*/jsx(Components$2.DropdownInput, {
5176
+ label: values.textJobType,
5177
+ value: this.state.type,
5178
+ options: this.getTypeOptions(),
5179
+ onSelect: this.onSelectType,
5180
+ style: {
5184
5181
  marginBottom: 15
5185
- },
5186
- children: [/*#__PURE__*/jsx(Components$2.Text, {
5187
- type: "formLabel",
5188
- children: values.textJobType
5189
- }), /*#__PURE__*/jsx(DropdownButton, {
5190
- style: {
5191
- minWidth: 80
5192
- },
5193
- bsStyle: "default",
5194
- title: this.state.type,
5195
- id: "typeSelect",
5196
- onSelect: this.onSelectType,
5197
- children: this.renderTypeOptions()
5198
- })]
5182
+ }
5199
5183
  }), !_.isEmpty(customFields) || values.forceCustomFields ? this.renderCustomFields() : this.renderDefaultFields()]
5200
5184
  })
5201
5185
  });