@plusscommunities/pluss-maintenance-web 1.3.0-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';
@@ -4699,21 +4699,14 @@ class AddJob extends Component {
4699
4699
  }, 100);
4700
4700
  }
4701
4701
  }
4702
- renderTypeOptions() {
4702
+ getTypeOptions() {
4703
4703
  var {
4704
- types,
4705
- type
4704
+ types
4706
4705
  } = this.state;
4707
- return types.map(ev => {
4708
- if (ev != null) {
4709
- return /*#__PURE__*/jsx(MenuItem, {
4710
- eventKey: ev.typeName,
4711
- active: type === ev.typeName,
4712
- children: ev.typeName
4713
- }, ev.typeName);
4714
- }
4715
- return null;
4716
- });
4706
+ return types.filter(Boolean).map(ev => ({
4707
+ Key: ev.typeName,
4708
+ Title: ev.typeName
4709
+ }));
4717
4710
  }
4718
4711
  renderSuccess() {
4719
4712
  if (!this.state.success) return null;
@@ -5190,23 +5183,14 @@ class AddJob extends Component {
5190
5183
  showError: () => {
5191
5184
  return this.state.showWarnings && _.isEmpty(this.state.room);
5192
5185
  }
5193
- }), /*#__PURE__*/jsxs("div", {
5194
- iconStyle: {
5186
+ }), /*#__PURE__*/jsx(Components$2.DropdownInput, {
5187
+ label: values.textJobType,
5188
+ value: this.state.type,
5189
+ options: this.getTypeOptions(),
5190
+ onSelect: this.onSelectType,
5191
+ style: {
5195
5192
  marginBottom: 15
5196
- },
5197
- children: [/*#__PURE__*/jsx(Components$2.Text, {
5198
- type: "formLabel",
5199
- children: values.textJobType
5200
- }), /*#__PURE__*/jsx(DropdownButton, {
5201
- style: {
5202
- minWidth: 80
5203
- },
5204
- bsStyle: "default",
5205
- title: this.state.type,
5206
- id: "typeSelect",
5207
- onSelect: this.onSelectType,
5208
- children: this.renderTypeOptions()
5209
- })]
5193
+ }
5210
5194
  }), !_.isEmpty(customFields) || values.forceCustomFields ? this.renderCustomFields() : this.renderDefaultFields()]
5211
5195
  })
5212
5196
  });