@plusscommunities/pluss-maintenance-app-forms 6.0.10 → 6.0.11-auth.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.
Files changed (106) hide show
  1. package/dist/module/actions/JobActions.js +44 -1
  2. package/dist/module/actions/JobActions.js.map +1 -1
  3. package/dist/module/actions/index.js +1 -1
  4. package/dist/module/actions/index.js.map +1 -1
  5. package/dist/module/actions/types.js +4 -1
  6. package/dist/module/actions/types.js.map +1 -1
  7. package/dist/module/apis/index.js +4 -1
  8. package/dist/module/apis/index.js.map +1 -1
  9. package/dist/module/apis/maintenanceActions.js +61 -38
  10. package/dist/module/apis/maintenanceActions.js.map +1 -1
  11. package/dist/module/apis/userActions.js +23 -0
  12. package/dist/module/apis/userActions.js.map +1 -0
  13. package/dist/module/components/FilterPopupMenu.js +82 -58
  14. package/dist/module/components/FilterPopupMenu.js.map +1 -1
  15. package/dist/module/components/MaintenanceList.js +84 -92
  16. package/dist/module/components/MaintenanceList.js.map +1 -1
  17. package/dist/module/components/MaintenanceListItem.js +94 -80
  18. package/dist/module/components/MaintenanceListItem.js.map +1 -1
  19. package/dist/module/components/MaintenanceWidgetItem.js +39 -38
  20. package/dist/module/components/MaintenanceWidgetItem.js.map +1 -1
  21. package/dist/module/components/PrioritySelectorPopup.js +83 -0
  22. package/dist/module/components/PrioritySelectorPopup.js.map +1 -0
  23. package/dist/module/components/StatusSelectorPopup.js +23 -27
  24. package/dist/module/components/StatusSelectorPopup.js.map +1 -1
  25. package/dist/module/components/WidgetLarge.js +2 -2
  26. package/dist/module/components/WidgetLarge.js.map +1 -1
  27. package/dist/module/components/WidgetSmall.js +25 -20
  28. package/dist/module/components/WidgetSmall.js.map +1 -1
  29. package/dist/module/core.config.js +2 -3
  30. package/dist/module/core.config.js.map +1 -1
  31. package/dist/module/feature.config.js +17 -17
  32. package/dist/module/feature.config.js.map +1 -1
  33. package/dist/module/helper.js +41 -26
  34. package/dist/module/helper.js.map +1 -1
  35. package/dist/module/index.js +12 -10
  36. package/dist/module/index.js.map +1 -1
  37. package/dist/module/reducers/JobsReducer.js +36 -6
  38. package/dist/module/reducers/JobsReducer.js.map +1 -1
  39. package/dist/module/screens/JobTypePicker.js +18 -17
  40. package/dist/module/screens/JobTypePicker.js.map +1 -1
  41. package/dist/module/screens/MaintenancePage.js +10 -10
  42. package/dist/module/screens/MaintenancePage.js.map +1 -1
  43. package/dist/module/screens/MaintenanceUserPicker.js +219 -0
  44. package/dist/module/screens/MaintenanceUserPicker.js.map +1 -0
  45. package/dist/module/screens/RequestDetail.js +410 -142
  46. package/dist/module/screens/RequestDetail.js.map +1 -1
  47. package/dist/module/screens/RequestNotes.js +462 -52
  48. package/dist/module/screens/RequestNotes.js.map +1 -1
  49. package/dist/module/screens/ServiceRequest.js +519 -181
  50. package/dist/module/screens/ServiceRequest.js.map +1 -1
  51. package/dist/module/values.config.a.js +30 -23
  52. package/dist/module/values.config.a.js.map +1 -1
  53. package/dist/module/values.config.default.js +35 -28
  54. package/dist/module/values.config.default.js.map +1 -1
  55. package/dist/module/values.config.enquiry.js +43 -0
  56. package/dist/module/values.config.enquiry.js.map +1 -0
  57. package/dist/module/values.config.feedback.js +43 -0
  58. package/dist/module/values.config.feedback.js.map +1 -0
  59. package/dist/module/values.config.food.js +43 -0
  60. package/dist/module/values.config.food.js.map +1 -0
  61. package/dist/module/values.config.forms.js +35 -28
  62. package/dist/module/values.config.forms.js.map +1 -1
  63. package/dist/module/values.config.js +35 -28
  64. package/dist/module/values.config.js.map +1 -1
  65. package/package.json +55 -51
  66. package/src/actions/JobActions.js +75 -16
  67. package/src/actions/index.js +1 -1
  68. package/src/actions/types.js +4 -1
  69. package/src/apis/index.js +6 -1
  70. package/src/apis/maintenanceActions.js +189 -160
  71. package/src/apis/userActions.js +21 -0
  72. package/src/components/FilterPopupMenu.js +316 -230
  73. package/src/components/MaintenanceList.js +391 -326
  74. package/src/components/MaintenanceListItem.js +348 -274
  75. package/src/components/MaintenanceWidgetItem.js +146 -120
  76. package/src/components/PrioritySelectorPopup.js +93 -0
  77. package/src/components/StatusSelectorPopup.js +82 -76
  78. package/src/components/WidgetLarge.js +5 -5
  79. package/src/components/WidgetSmall.js +154 -131
  80. package/src/core.config.js +25 -3
  81. package/src/feature.config.js +62 -62
  82. package/src/helper.js +67 -30
  83. package/src/index.js +22 -20
  84. package/src/reducers/JobsReducer.js +85 -41
  85. package/src/screens/JobTypePicker.js +116 -92
  86. package/src/screens/MaintenancePage.js +89 -80
  87. package/src/screens/MaintenanceUserPicker.js +233 -0
  88. package/src/screens/RequestDetail.js +1354 -892
  89. package/src/screens/RequestNotes.js +946 -408
  90. package/src/screens/ServiceRequest.js +1808 -1222
  91. package/src/values.config.a.js +33 -26
  92. package/src/values.config.default.js +39 -32
  93. package/src/values.config.enquiry.js +43 -0
  94. package/src/values.config.feedback.js +43 -0
  95. package/src/values.config.food.js +43 -0
  96. package/src/values.config.forms.js +39 -32
  97. package/src/values.config.js +39 -32
  98. package/dist/module/values.config.b.js +0 -30
  99. package/dist/module/values.config.b.js.map +0 -1
  100. package/dist/module/values.config.c.js +0 -30
  101. package/dist/module/values.config.c.js.map +0 -1
  102. package/dist/module/values.config.d.js +0 -30
  103. package/dist/module/values.config.d.js.map +0 -1
  104. package/src/values.config.b.js +0 -30
  105. package/src/values.config.c.js +0 -30
  106. package/src/values.config.d.js +0 -30
@@ -1,132 +1,158 @@
1
- import React, { Component } from 'react';
2
- import { Text, View, StyleSheet, TouchableOpacity } from 'react-native';
3
- import { connect } from 'react-redux';
4
- import { Icon } from 'react-native-elements';
5
- import moment from 'moment';
6
- import _ from 'lodash';
7
- import { getJobStatusProps, jobStatusOptions } from '../helper';
8
- import { Services } from '../feature.config';
9
- import { Colours, Helper } from '../core.config';
10
- import { values } from '../values.config';
1
+ import React, { Component } from "react";
2
+ import { View, StyleSheet, TouchableOpacity } from "react-native";
3
+ import { Text } from "@plusscommunities/pluss-core-app/components";
4
+ import { connect } from "react-redux";
5
+ import { Icon } from "@rneui/themed";
6
+ import moment from "moment";
7
+ import _ from "lodash";
8
+ import { getJobStatus } from "../helper";
9
+ import { Services } from "../feature.config";
10
+ import { Colours, Helper } from "../core.config";
11
+ import { values } from "../values.config";
11
12
 
12
13
  class MaintenanceWidgetItem extends Component {
13
- onPressJob = () => {
14
- Services.navigation.navigate(values.screenRequestDetail, { job: this.props.job });
15
- };
14
+ onPressJob = () => {
15
+ Services.navigation.navigate(values.screenRequestDetail, {
16
+ job: this.props.job,
17
+ });
18
+ };
16
19
 
17
- render() {
18
- const { job } = this.props;
19
- const createdTime = moment(job.createdUnix);
20
- const createdTimeText = `${createdTime.format('ddd, D MMMM')} • ${createdTime.format('h:mma')}`;
21
- const { statusText, statusColor } = getJobStatusProps(job.status);
22
- const seenText = (() => {
23
- if (!job.status || job.status === jobStatusOptions[0].name) {
24
- return job.seen ? 'Seen' : 'Unseen';
25
- }
26
- return '';
27
- })();
20
+ render() {
21
+ const { job, hideSeen } = this.props;
22
+ const createdTime = moment(job.createdUnix);
23
+ const createdTimeText = `${createdTime.format("ddd, D MMMM")} • ${createdTime.format("h:mma")}`;
24
+ const status = getJobStatus(job.status, this.props);
25
+ const seenText = (() => {
26
+ if (!job.status || job.status === getJobStatus(null, this.props).text) {
27
+ return job.seen ? "Seen" : "Unseen";
28
+ }
29
+ return "";
30
+ })();
28
31
 
29
- return (
30
- <TouchableOpacity key={job.id} onPress={this.onPressJob}>
31
- <View style={styles.jobContainer}>
32
- <View style={styles.jobInnerContainer}>
33
- <View style={styles.jobTopSection}>
34
- <Text numberOfLines={2} style={styles.jobTitleText}>
35
- {job.title}
36
- </Text>
37
- <Text style={styles.jobCreatedTimeText}>{createdTimeText}</Text>
38
- <View style={styles.jobSeenContainer}>
39
- {job.seen && !_.isEmpty(seenText) && (
40
- <Icon name="check" type="font-awesome" iconStyle={[styles.jobSeenIcon, { color: this.props.colourBrandingMain }]} />
41
- )}
42
- <Text style={[styles.jobSeenText, job.seen && { color: this.props.colourBrandingMain }]}>{seenText}</Text>
43
- </View>
44
- </View>
45
- <View style={styles.jobBottomSection}>
46
- <View style={[styles.jobStatusContainer, { backgroundColor: statusColor }]}>
47
- {/* <Icon name="wrench" type="font-awesome" iconStyle={styles.jobStatusIcon} /> */}
48
- <Text style={styles.jobStatusText}>{statusText}</Text>
49
- </View>
50
- </View>
51
- </View>
52
- </View>
53
- </TouchableOpacity>
54
- );
55
- }
32
+ return (
33
+ <TouchableOpacity key={job.id} onPress={this.onPressJob}>
34
+ <View style={styles.jobContainer}>
35
+ <View style={styles.jobInnerContainer}>
36
+ <View style={styles.jobTopSection}>
37
+ <Text numberOfLines={2} style={styles.jobTitleText}>
38
+ {job.title}
39
+ </Text>
40
+ <Text style={styles.jobCreatedTimeText}>{createdTimeText}</Text>
41
+ {!hideSeen ? (
42
+ <View style={styles.jobSeenContainer}>
43
+ {job.seen && !_.isEmpty(seenText) && (
44
+ <Icon
45
+ name="check"
46
+ type="font-awesome"
47
+ iconStyle={[
48
+ styles.jobSeenIcon,
49
+ { color: this.props.colourBrandingMain },
50
+ ]}
51
+ />
52
+ )}
53
+ <Text
54
+ style={[
55
+ styles.jobSeenText,
56
+ job.seen && { color: this.props.colourBrandingMain },
57
+ ]}
58
+ >
59
+ {seenText}
60
+ </Text>
61
+ </View>
62
+ ) : null}
63
+ </View>
64
+ <View style={styles.jobBottomSection}>
65
+ <View
66
+ style={[
67
+ styles.jobStatusContainer,
68
+ { backgroundColor: status?.color },
69
+ ]}
70
+ >
71
+ {/* <Icon name="wrench" type="font-awesome" iconStyle={styles.jobStatusIcon} /> */}
72
+ <Text style={styles.jobStatusText}>{status?.text}</Text>
73
+ </View>
74
+ </View>
75
+ </View>
76
+ </View>
77
+ </TouchableOpacity>
78
+ );
79
+ }
56
80
  }
57
81
 
58
82
  const styles = StyleSheet.create({
59
- jobContainer: {
60
- padding: 10,
61
- },
62
- jobInnerContainer: {
63
- width: 140,
64
- height: 160,
65
- ...Helper.getShadowStyle(),
66
- },
67
- jobTopSection: {
68
- flex: 1,
69
- padding: 10,
70
- paddingTop: 20,
71
- },
72
- jobTitleText: {
73
- flex: 1,
74
- fontFamily: 'sf-semibold',
75
- fontSize: 16,
76
- color: Colours.TEXT_DARK,
77
- },
78
- jobCreatedTimeText: {
79
- fontFamily: 'sf-medium',
80
- fontSize: 11,
81
- color: Colours.TEXT_LIGHT,
82
- paddingTop: 3,
83
- },
84
- jobSeenContainer: {
85
- flexDirection: 'row',
86
- alignItems: 'center',
87
- paddingTop: 5,
88
- },
89
- jobSeenIcon: {
90
- fontSize: 12,
91
- marginRight: 4,
92
- },
93
- jobSeenText: {
94
- fontFamily: 'sf-semibold',
95
- fontSize: 12,
96
- color: Colours.TEXT_SUPER_LIGHT,
97
- },
98
- jobBottomSection: {
99
- alignItems: 'center',
100
- justifyContent: 'center',
101
- paddingVertical: 10,
102
- borderTopWidth: 1,
103
- borderTopColor: Colours.LINEGREY,
104
- },
105
- jobStatusContainer: {
106
- flexDirection: 'row',
107
- alignItems: 'center',
108
- justifyContent: 'space-between',
109
- width: 105,
110
- height: 30,
111
- paddingHorizontal: 8,
112
- borderRadius: 4,
113
- },
114
- jobStatusIcon: {
115
- color: '#fff',
116
- fontSize: 14,
117
- },
118
- jobStatusText: {
119
- color: '#fff',
120
- textAlign: 'center',
121
- fontFamily: 'sf-semibold',
122
- fontSize: 13,
123
- },
83
+ jobContainer: {
84
+ padding: 10,
85
+ },
86
+ jobInnerContainer: {
87
+ width: 140,
88
+ height: 160,
89
+ ...Helper.getShadowStyle(),
90
+ },
91
+ jobTopSection: {
92
+ flex: 1,
93
+ padding: 10,
94
+ paddingTop: 20,
95
+ },
96
+ jobTitleText: {
97
+ flex: 1,
98
+ fontFamily: "sf-semibold",
99
+ fontSize: 16,
100
+ color: Colours.TEXT_DARK,
101
+ },
102
+ jobCreatedTimeText: {
103
+ fontFamily: "sf-medium",
104
+ fontSize: 11,
105
+ color: Colours.TEXT_LIGHT,
106
+ paddingTop: 3,
107
+ },
108
+ jobSeenContainer: {
109
+ flexDirection: "row",
110
+ alignItems: "center",
111
+ paddingTop: 5,
112
+ },
113
+ jobSeenIcon: {
114
+ fontSize: 12,
115
+ marginRight: 4,
116
+ },
117
+ jobSeenText: {
118
+ fontFamily: "sf-semibold",
119
+ fontSize: 12,
120
+ color: Colours.TEXT_SUPER_LIGHT,
121
+ },
122
+ jobBottomSection: {
123
+ alignItems: "center",
124
+ justifyContent: "center",
125
+ paddingVertical: 10,
126
+ borderTopWidth: 1,
127
+ borderTopColor: Colours.LINEGREY,
128
+ },
129
+ jobStatusContainer: {
130
+ flexDirection: "row",
131
+ alignItems: "center",
132
+ justifyContent: "space-between",
133
+ width: 105,
134
+ height: 30,
135
+ paddingHorizontal: 8,
136
+ borderRadius: 4,
137
+ },
138
+ jobStatusIcon: {
139
+ color: "#fff",
140
+ fontSize: 14,
141
+ },
142
+ jobStatusText: {
143
+ color: "#fff",
144
+ textAlign: "center",
145
+ fontFamily: "sf-semibold",
146
+ fontSize: 13,
147
+ },
124
148
  });
125
149
 
126
- const mapStateToProps = state => {
127
- return {
128
- colourBrandingMain: Colours.getMainBrandingColourFromState(state),
129
- };
150
+ const mapStateToProps = (state) => {
151
+ return {
152
+ colourBrandingMain: Colours.getMainBrandingColourFromState(state),
153
+ statusTypes: state[values.reducerKey].jobstatuses,
154
+ hideSeen: state[values.reducerKey].hideSeen,
155
+ };
130
156
  };
131
157
 
132
158
  export default connect(mapStateToProps, {})(MaintenanceWidgetItem);
@@ -0,0 +1,93 @@
1
+ import React, { PureComponent } from "react";
2
+ import { View, StyleSheet, TouchableOpacity } from "react-native";
3
+ import { Text } from "@plusscommunities/pluss-core-app/components";
4
+ import { connect } from "react-redux";
5
+ import { jobPriorityOptions } from "../helper";
6
+ import { Components, Colours } from "../core.config";
7
+
8
+ class PrioritySelectorPopup extends PureComponent {
9
+ render() {
10
+ const { title, includeAll, allText, onClose, onSelect } = this.props;
11
+ let priorities = jobPriorityOptions;
12
+ if (includeAll)
13
+ priorities = [
14
+ {
15
+ label: allText || "Show All",
16
+ color: this.props.colourBrandingMain,
17
+ },
18
+ ...priorities,
19
+ ];
20
+
21
+ return (
22
+ <Components.MiddlePopup
23
+ style={[styles.statusPopup, { height: priorities.length * 50 + 40 }]}
24
+ onClose={onClose}
25
+ >
26
+ <Text style={styles.statusPopupTitle}>
27
+ {title || "Select Priority"}
28
+ </Text>
29
+ <View style={styles.statusPopupOptionsContainer}>
30
+ {priorities.map((priority) => {
31
+ return (
32
+ <TouchableOpacity
33
+ key={priority.label}
34
+ onPress={() => onSelect(priority.label)}
35
+ >
36
+ <View
37
+ style={[
38
+ styles.jobStatusContainer,
39
+ { backgroundColor: priority.color },
40
+ ]}
41
+ >
42
+ <Text style={styles.jobStatusText}>{priority.label}</Text>
43
+ </View>
44
+ </TouchableOpacity>
45
+ );
46
+ })}
47
+ </View>
48
+ </Components.MiddlePopup>
49
+ );
50
+ }
51
+ }
52
+
53
+ const styles = StyleSheet.create({
54
+ statusPopup: {
55
+ width: 160,
56
+ padding: 16,
57
+ borderRadius: 12,
58
+ },
59
+ statusPopupTitle: {
60
+ fontFamily: "sf-bold",
61
+ color: Colours.TEXT_DARK,
62
+ fontSize: 18,
63
+ marginBottom: 16,
64
+ },
65
+ statusPopupOptionsContainer: {
66
+ flex: 1,
67
+ justifyContent: "space-between",
68
+ },
69
+ jobStatusContainer: {
70
+ flexDirection: "row",
71
+ alignItems: "center",
72
+ justifyContent: "space-between",
73
+ width: 105,
74
+ height: 30,
75
+ paddingHorizontal: 8,
76
+ borderRadius: 4,
77
+ },
78
+ jobStatusText: {
79
+ color: "#fff",
80
+ textAlign: "center",
81
+ fontFamily: "sf-semibold",
82
+ fontSize: 13,
83
+ flex: 1,
84
+ },
85
+ });
86
+
87
+ const mapStateToProps = (state) => {
88
+ return {
89
+ colourBrandingMain: Colours.getMainBrandingColourFromState(state),
90
+ };
91
+ };
92
+
93
+ export default connect(mapStateToProps, {})(PrioritySelectorPopup);
@@ -1,87 +1,93 @@
1
- import React, { PureComponent } from 'react';
2
- import { View, StyleSheet, TouchableOpacity, Text } from 'react-native';
3
- import { connect } from 'react-redux';
4
- import { jobStatusOptions, getJobStatusColour } from '../helper';
5
- import { Components, Colours } from '../core.config';
1
+ import React, { PureComponent } from "react";
2
+ import { View, StyleSheet, TouchableOpacity } from "react-native";
3
+ import { Text } from "@plusscommunities/pluss-core-app/components";
4
+ import { connect } from "react-redux";
5
+ import { getJobStatusOptions } from "../helper";
6
+ import { Components, Colours } from "../core.config";
7
+ import { values } from "../values.config";
6
8
 
7
9
  class StatusSelectorPopup extends PureComponent {
8
- render() {
9
- const { title, filter, includeAll, allText, onClose, onSelect } = this.props;
10
- let statuses = filter
11
- ? filter.map(status => {
12
- return {
13
- name: status,
14
- label: getJobStatusLabel(status),
15
- color: getJobStatusColour(status),
16
- };
17
- })
18
- : jobStatusOptions;
19
- if (includeAll)
20
- statuses = [
21
- {
22
- name: allText || 'Show All',
23
- color: this.props.colourBrandingMain,
24
- },
25
- ...statuses,
26
- ];
10
+ render() {
11
+ const { title, includeAll, allText, onClose, onSelect } = this.props;
12
+ let statuses = getJobStatusOptions(this.props);
13
+ if (includeAll)
14
+ statuses = [
15
+ {
16
+ text: allText || "Show All",
17
+ color: this.props.colourBrandingMain,
18
+ },
19
+ ...statuses,
20
+ ];
27
21
 
28
- return (
29
- <Components.MiddlePopup style={[styles.statusPopup, { height: statuses.length * 50 + 40 }]} onClose={onClose}>
30
- <Text style={styles.statusPopupTitle}>{title || 'Select Status'}</Text>
31
- <View style={styles.statusPopupOptionsContainer}>
32
- {statuses.map(status => {
33
- return (
34
- <TouchableOpacity key={status.name} onPress={() => onSelect(status.name)}>
35
- <View style={[styles.jobStatusContainer, { backgroundColor: status.color }]}>
36
- <Text style={styles.jobStatusText}>{status.label}</Text>
37
- </View>
38
- </TouchableOpacity>
39
- );
40
- })}
41
- </View>
42
- </Components.MiddlePopup>
43
- );
44
- }
22
+ return (
23
+ <Components.MiddlePopup
24
+ style={[styles.statusPopup, { height: statuses.length * 50 + 40 }]}
25
+ onClose={onClose}
26
+ >
27
+ <Text style={styles.statusPopupTitle}>{title || "Select Status"}</Text>
28
+ <View style={styles.statusPopupOptionsContainer}>
29
+ {statuses.map((status) => {
30
+ return (
31
+ <TouchableOpacity
32
+ key={status.text}
33
+ onPress={() => onSelect(status.text)}
34
+ >
35
+ <View
36
+ style={[
37
+ styles.jobStatusContainer,
38
+ { backgroundColor: status.color },
39
+ ]}
40
+ >
41
+ <Text style={styles.jobStatusText}>{status.text}</Text>
42
+ </View>
43
+ </TouchableOpacity>
44
+ );
45
+ })}
46
+ </View>
47
+ </Components.MiddlePopup>
48
+ );
49
+ }
45
50
  }
46
51
 
47
52
  const styles = StyleSheet.create({
48
- statusPopup: {
49
- width: 160,
50
- padding: 16,
51
- borderRadius: 12,
52
- },
53
- statusPopupTitle: {
54
- fontFamily: 'sf-bold',
55
- color: Colours.TEXT_DARK,
56
- fontSize: 18,
57
- marginBottom: 16,
58
- },
59
- statusPopupOptionsContainer: {
60
- flex: 1,
61
- justifyContent: 'space-between',
62
- },
63
- jobStatusContainer: {
64
- flexDirection: 'row',
65
- alignItems: 'center',
66
- justifyContent: 'space-between',
67
- width: 105,
68
- height: 30,
69
- paddingHorizontal: 8,
70
- borderRadius: 4,
71
- },
72
- jobStatusText: {
73
- color: '#fff',
74
- textAlign: 'center',
75
- fontFamily: 'sf-semibold',
76
- fontSize: 13,
77
- flex: 1,
78
- },
53
+ statusPopup: {
54
+ width: 160,
55
+ padding: 16,
56
+ borderRadius: 12,
57
+ },
58
+ statusPopupTitle: {
59
+ fontFamily: "sf-bold",
60
+ color: Colours.TEXT_DARK,
61
+ fontSize: 18,
62
+ marginBottom: 16,
63
+ },
64
+ statusPopupOptionsContainer: {
65
+ flex: 1,
66
+ justifyContent: "space-between",
67
+ },
68
+ jobStatusContainer: {
69
+ flexDirection: "row",
70
+ alignItems: "center",
71
+ justifyContent: "space-between",
72
+ width: 105,
73
+ height: 30,
74
+ paddingHorizontal: 8,
75
+ borderRadius: 4,
76
+ },
77
+ jobStatusText: {
78
+ color: "#fff",
79
+ textAlign: "center",
80
+ fontFamily: "sf-semibold",
81
+ fontSize: 13,
82
+ flex: 1,
83
+ },
79
84
  });
80
85
 
81
- const mapStateToProps = state => {
82
- return {
83
- colourBrandingMain: Colours.getMainBrandingColourFromState(state),
84
- };
86
+ const mapStateToProps = (state) => {
87
+ return {
88
+ colourBrandingMain: Colours.getMainBrandingColourFromState(state),
89
+ statusTypes: state[values.reducerKey].jobstatuses,
90
+ };
85
91
  };
86
92
 
87
93
  export default connect(mapStateToProps, {})(StatusSelectorPopup);
@@ -1,10 +1,10 @@
1
- import React, { PureComponent } from 'react';
2
- import MaintenanceList from './MaintenanceList';
1
+ import React, { PureComponent } from "react";
2
+ import MaintenanceList from "./MaintenanceList";
3
3
 
4
4
  class WidgetLarge extends PureComponent {
5
- render() {
6
- return <MaintenanceList {...this.props} />;
7
- }
5
+ render() {
6
+ return <MaintenanceList {...this.props} />;
7
+ }
8
8
  }
9
9
 
10
10
  export default WidgetLarge;