@aclymatepackages/modules 5.0.2 → 5.0.3
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.
|
@@ -13,6 +13,7 @@ var _Cancel = _interopRequireDefault(require("@mui/icons-material/Cancel"));
|
|
|
13
13
|
var _arrayImmutabilityHelpers = require("@aclymatepackages/array-immutability-helpers");
|
|
14
14
|
var _atoms = require("@aclymatepackages/atoms");
|
|
15
15
|
var _modules = require("@aclymatepackages/modules");
|
|
16
|
+
var _IndustryAutocomplete = _interopRequireDefault(require("./IndustryAutocomplete"));
|
|
16
17
|
var _regExp = require("@aclymatepackages/reg-exp");
|
|
17
18
|
var _googleMaps = _interopRequireDefault(require("@aclymatepackages/google-maps"));
|
|
18
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -21,7 +22,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
21
22
|
const CompanyDataConfirmation = _ref => {
|
|
22
23
|
let {
|
|
23
24
|
companyData,
|
|
24
|
-
onConfirmClick
|
|
25
|
+
onConfirmClick,
|
|
26
|
+
fetchNaicsCodes
|
|
25
27
|
} = _ref;
|
|
26
28
|
const {
|
|
27
29
|
address: existingAddress
|
|
@@ -56,10 +58,10 @@ const CompanyDataConfirmation = _ref => {
|
|
|
56
58
|
value: employeeCount,
|
|
57
59
|
setValue: editCompanyData("employeeCount"),
|
|
58
60
|
error: employeeCount && !(0, _regExp.numbersRegExpTest)(employeeCount)
|
|
59
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
61
|
+
}), /*#__PURE__*/_react.default.createElement(_IndustryAutocomplete.default, {
|
|
60
62
|
industry: industry,
|
|
61
63
|
setIndustry: editCompanyData("industry"),
|
|
62
|
-
|
|
64
|
+
fetchNaicsCodes: fetchNaicsCodes
|
|
63
65
|
}), /*#__PURE__*/_react.default.createElement(_modules.YesNoQuestion, {
|
|
64
66
|
question: "Does your company only work remotely?",
|
|
65
67
|
value: isRemote,
|
|
@@ -28,6 +28,7 @@ const CompanyOnboardingInput = _ref => {
|
|
|
28
28
|
let {
|
|
29
29
|
appCheckToken,
|
|
30
30
|
companyName = "",
|
|
31
|
+
fetchNaicsCodes,
|
|
31
32
|
header,
|
|
32
33
|
onFormComplete,
|
|
33
34
|
PlacesAutocomplete,
|
|
@@ -67,10 +68,9 @@ const CompanyOnboardingInput = _ref => {
|
|
|
67
68
|
}, {
|
|
68
69
|
value: industry,
|
|
69
70
|
input: /*#__PURE__*/_react.default.createElement(_IndustryAutocomplete.default, {
|
|
70
|
-
label: "Choose your company's industry",
|
|
71
71
|
industry: industry,
|
|
72
72
|
setIndustry: editInputData("industry"),
|
|
73
|
-
|
|
73
|
+
fetchNaicsCodes: fetchNaicsCodes
|
|
74
74
|
})
|
|
75
75
|
}, {
|
|
76
76
|
value: location,
|
package/package.json
CHANGED
|
@@ -16,15 +16,13 @@ import CancelIcon from "@mui/icons-material/Cancel";
|
|
|
16
16
|
|
|
17
17
|
import { editObjectData } from "@aclymatepackages/array-immutability-helpers";
|
|
18
18
|
import { TextField } from "@aclymatepackages/atoms";
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
PlacesAutocomplete,
|
|
23
|
-
} from "@aclymatepackages/modules";
|
|
19
|
+
import { YesNoQuestion, PlacesAutocomplete } from "@aclymatepackages/modules";
|
|
20
|
+
|
|
21
|
+
import IndustryAutocomplete from "./IndustryAutocomplete";
|
|
24
22
|
import { numbersRegExpTest } from "@aclymatepackages/reg-exp";
|
|
25
23
|
import GoogleMap from "@aclymatepackages/google-maps";
|
|
26
24
|
|
|
27
|
-
const CompanyDataConfirmation = ({ companyData, onConfirmClick }) => {
|
|
25
|
+
const CompanyDataConfirmation = ({ companyData, onConfirmClick, fetchNaicsCodes }) => {
|
|
28
26
|
const { address: existingAddress } = companyData || {};
|
|
29
27
|
const { coordinates: existingCoordinates } = existingAddress || {};
|
|
30
28
|
|
|
@@ -64,7 +62,7 @@ const CompanyDataConfirmation = ({ companyData, onConfirmClick }) => {
|
|
|
64
62
|
<IndustryAutocomplete
|
|
65
63
|
industry={industry}
|
|
66
64
|
setIndustry={editCompanyData("industry")}
|
|
67
|
-
|
|
65
|
+
fetchNaicsCodes={fetchNaicsCodes}
|
|
68
66
|
/>,
|
|
69
67
|
<YesNoQuestion
|
|
70
68
|
question="Does your company only work remotely?"
|
|
@@ -15,6 +15,7 @@ import PlacesAutocompleteModule from "./PlacesAutocomplete";
|
|
|
15
15
|
const CompanyOnboardingInput = ({
|
|
16
16
|
appCheckToken,
|
|
17
17
|
companyName = "",
|
|
18
|
+
fetchNaicsCodes,
|
|
18
19
|
header,
|
|
19
20
|
onFormComplete,
|
|
20
21
|
PlacesAutocomplete,
|
|
@@ -65,10 +66,9 @@ const CompanyOnboardingInput = ({
|
|
|
65
66
|
value: industry,
|
|
66
67
|
input: (
|
|
67
68
|
<IndustryAutocomplete
|
|
68
|
-
label="Choose your company's industry"
|
|
69
69
|
industry={industry}
|
|
70
70
|
setIndustry={editInputData("industry")}
|
|
71
|
-
|
|
71
|
+
fetchNaicsCodes={fetchNaicsCodes}
|
|
72
72
|
/>
|
|
73
73
|
),
|
|
74
74
|
},
|