@aclymatepackages/modules 4.1.5 → 4.1.7

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.
@@ -48,11 +48,6 @@ const CompanyOnboardingInput = _ref => {
48
48
  email
49
49
  } = inputData;
50
50
  const PlacesAutocompleteComponent = PlacesAutocomplete || _PlacesAutocomplete.default;
51
- const nameInputArray = websiteInput ? [{
52
- label: "What is your company's name?",
53
- value: name,
54
- editData: editInputData("name")
55
- }] : [];
56
51
  const userInfoArray = websiteInput ? [{
57
52
  label: "What is your name?",
58
53
  value: username,
@@ -60,9 +55,10 @@ const CompanyOnboardingInput = _ref => {
60
55
  }, {
61
56
  label: "What is your email address?",
62
57
  value: email,
63
- editData: editInputData("email")
58
+ editData: editInputData("email"),
59
+ onNextStep: () => onFormComplete(inputData)
64
60
  }] : [];
65
- const nonPeopleDataLabsCompanyInputs = [...nameInputArray, {
61
+ const nonPeopleDataLabsCompanyInputs = [{
66
62
  label: "How many employees work for your company?",
67
63
  value: employeeCount,
68
64
  editData: editInputData("employeeCount"),
@@ -112,7 +108,7 @@ const CompanyOnboardingInput = _ref => {
112
108
  setValue: editInputData("name"),
113
109
  variant: "standard",
114
110
  label: "What is your company's name?"
115
- })), /*#__PURE__*/_react.default.createElement(_material.Grid, {
111
+ })), name && /*#__PURE__*/_react.default.createElement(_material.Grid, {
116
112
  item: true,
117
113
  xs: 12
118
114
  }, /*#__PURE__*/_react.default.createElement(_multiPartForm.MultiPartFormLayout, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "4.1.5",
3
+ "version": "4.1.7",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -32,16 +32,6 @@ const CompanyOnboardingInput = ({
32
32
  const PlacesAutocompleteComponent =
33
33
  PlacesAutocomplete || PlacesAutocompleteModule;
34
34
 
35
- const nameInputArray = websiteInput
36
- ? [
37
- {
38
- label: "What is your company's name?",
39
- value: name,
40
- editData: editInputData("name"),
41
- },
42
- ]
43
- : [];
44
-
45
35
  const userInfoArray = websiteInput
46
36
  ? [
47
37
  {
@@ -53,12 +43,12 @@ const CompanyOnboardingInput = ({
53
43
  label: "What is your email address?",
54
44
  value: email,
55
45
  editData: editInputData("email"),
46
+ onNextStep: () => onFormComplete(inputData),
56
47
  },
57
48
  ]
58
49
  : [];
59
50
 
60
51
  const nonPeopleDataLabsCompanyInputs = [
61
- ...nameInputArray,
62
52
  {
63
53
  label: "How many employees work for your company?",
64
54
  value: employeeCount,
@@ -126,17 +116,19 @@ const CompanyOnboardingInput = ({
126
116
  label="What is your company's name?"
127
117
  />
128
118
  </Grid>
129
- <Grid item xs={12}>
130
- <MultiPartFormLayout
131
- forms={[{ name: "onboarding", label: "Onboarding" }]}
132
- rows={formInputArray}
133
- confirmClose={false}
134
- theme={theme || mainTheme}
135
- styleProps={{ padding: 0 }}
136
- p={0}
137
- noGutter
138
- />
139
- </Grid>
119
+ {name && (
120
+ <Grid item xs={12}>
121
+ <MultiPartFormLayout
122
+ forms={[{ name: "onboarding", label: "Onboarding" }]}
123
+ rows={formInputArray}
124
+ confirmClose={false}
125
+ theme={theme || mainTheme}
126
+ styleProps={{ padding: 0 }}
127
+ p={0}
128
+ noGutter
129
+ />
130
+ </Grid>
131
+ )}
140
132
  </Grid>
141
133
  </Container>
142
134
  );