@aclymatepackages/modules 4.1.5 → 4.1.6

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,
@@ -62,7 +57,7 @@ const CompanyOnboardingInput = _ref => {
62
57
  value: email,
63
58
  editData: editInputData("email")
64
59
  }] : [];
65
- const nonPeopleDataLabsCompanyInputs = [...nameInputArray, {
60
+ const nonPeopleDataLabsCompanyInputs = [{
66
61
  label: "How many employees work for your company?",
67
62
  value: employeeCount,
68
63
  editData: editInputData("employeeCount"),
@@ -112,7 +107,7 @@ const CompanyOnboardingInput = _ref => {
112
107
  setValue: editInputData("name"),
113
108
  variant: "standard",
114
109
  label: "What is your company's name?"
115
- })), /*#__PURE__*/_react.default.createElement(_material.Grid, {
110
+ })), name && /*#__PURE__*/_react.default.createElement(_material.Grid, {
116
111
  item: true,
117
112
  xs: 12
118
113
  }, /*#__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.6",
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
  {
@@ -58,7 +48,6 @@ const CompanyOnboardingInput = ({
58
48
  : [];
59
49
 
60
50
  const nonPeopleDataLabsCompanyInputs = [
61
- ...nameInputArray,
62
51
  {
63
52
  label: "How many employees work for your company?",
64
53
  value: employeeCount,
@@ -126,17 +115,19 @@ const CompanyOnboardingInput = ({
126
115
  label="What is your company's name?"
127
116
  />
128
117
  </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>
118
+ {name && (
119
+ <Grid item xs={12}>
120
+ <MultiPartFormLayout
121
+ forms={[{ name: "onboarding", label: "Onboarding" }]}
122
+ rows={formInputArray}
123
+ confirmClose={false}
124
+ theme={theme || mainTheme}
125
+ styleProps={{ padding: 0 }}
126
+ p={0}
127
+ noGutter
128
+ />
129
+ </Grid>
130
+ )}
140
131
  </Grid>
141
132
  </Container>
142
133
  );