@configuratorware/configurator-frontendgui 1.31.0 → 1.31.1

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 (28) hide show
  1. package/App/Reducers/Configurator/Actions.js +81 -20
  2. package/App/Screens/Configurator/Components/DesignApproval/index.js +76 -0
  3. package/App/Screens/Configurator/Components/DesignApproval/index.story.js +27 -0
  4. package/App/Screens/Configurator/Components/DesignApproval/index.test.js +31 -0
  5. package/App/{Shared/Components/AcceptPrivacy/index.js → Screens/Configurator/Containers/DesignApproval.js} +71 -78
  6. package/App/Screens/Configurator/ThemeProvider.js +1 -1
  7. package/App/Shared/Components/AddToBasket/index.js +1 -1
  8. package/App/Shared/Components/AmountPrice/index.js +49 -83
  9. package/App/Shared/Components/PriceOverview/index.js +3 -5
  10. package/App/Shared/Components/ReceiveOfferForm/index.js +10 -9
  11. package/App/configuration.js +1 -1
  12. package/package.json +4 -4
  13. package/public/translations/de_DE.json +1 -4
  14. package/public/translations/en_GB.json +1 -4
  15. package/src/App/Reducers/Configurator/Actions.js +37 -6
  16. package/src/App/Screens/Configurator/Components/DesignApproval/__snapshots__/index.test.jsx.snap +91 -0
  17. package/src/App/Screens/Configurator/Components/DesignApproval/index.js +54 -0
  18. package/src/App/Screens/Configurator/Components/DesignApproval/index.story.js +12 -0
  19. package/src/App/Screens/Configurator/Components/DesignApproval/index.test.jsx +17 -0
  20. package/src/App/Screens/Configurator/Containers/DesignApproval.js +76 -0
  21. package/src/App/Screens/Configurator/ThemeProvider.js +2 -2
  22. package/src/App/Shared/Components/AddToBasket/index.js +1 -1
  23. package/src/App/Shared/Components/AmountPrice/index.js +3 -48
  24. package/src/App/Shared/Components/PriceOverview/index.js +0 -3
  25. package/src/App/Shared/Components/ReceiveOfferForm/__snapshots__/index.test.jsx.snap +64 -64
  26. package/src/App/Shared/Components/ReceiveOfferForm/index.js +10 -9
  27. package/src/App/configuration.js +1 -1
  28. package/src/App/Shared/Components/AcceptPrivacy/index.js +0 -78
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { getClientTexts } from 'App/Reducers/Configurator/Selectors';
4
+ import DesignApproval from '../Components/DesignApproval';
5
+ import { containerConnect } from 'Framework/ComponentContainer';
6
+
7
+ class DesignApprovalContainer extends React.Component {
8
+ static propTypes = {
9
+ termsAndConditionsLink: PropTypes.string,
10
+ DesignApprovalComponent: PropTypes.func,
11
+ };
12
+
13
+ static defaultProps = {
14
+ DesignApprovalComponent: DesignApproval,
15
+ };
16
+
17
+ constructor(props) {
18
+ super(props);
19
+
20
+ this.state = {
21
+ approval: {
22
+ checked: false,
23
+ error: false,
24
+ },
25
+ };
26
+ }
27
+
28
+ handleApprovalChange = checked => {
29
+ this.setState({
30
+ approval: {
31
+ checked,
32
+ error: false,
33
+ },
34
+ });
35
+ };
36
+
37
+ validate() {
38
+ const {
39
+ approval: { checked },
40
+ } = this.state;
41
+
42
+ if (checked) {
43
+ return true;
44
+ }
45
+
46
+ this.setState({
47
+ approval: {
48
+ checked,
49
+ error: true,
50
+ },
51
+ });
52
+
53
+ return false;
54
+ }
55
+
56
+ render() {
57
+ const { approval } = this.state;
58
+ const { termsAndConditionsLink, DesignApprovalComponent } = this.props;
59
+
60
+ return (
61
+ <DesignApprovalComponent
62
+ checked={approval.checked}
63
+ error={approval.error}
64
+ link={termsAndConditionsLink}
65
+ onChange={this.handleApprovalChange}
66
+ />
67
+ );
68
+ }
69
+ }
70
+
71
+ const mapStateToProps = ({ configurator }) => ({
72
+ Component: DesignApprovalContainer,
73
+ termsAndConditionsLink: getClientTexts(configurator).termsAndConditionsLink,
74
+ });
75
+
76
+ export default containerConnect(mapStateToProps);
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { connect } from 'react-redux';
4
- import { MuiThemeProvider, createTheme } from '@material-ui/core/styles';
4
+ import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
5
5
  import { grey } from '@material-ui/core/colors';
6
6
  import merge from 'lodash/merge';
7
7
  import cloneDeep from 'lodash/cloneDeep';
@@ -245,7 +245,7 @@ const mapStateToProps = state => ({
245
245
 
246
246
  export const ThemeMixer = ({ client, customTheme, withTheme, children }) => {
247
247
  const themeMix = useMemo(() => {
248
- const theme = createTheme(
248
+ const theme = createMuiTheme(
249
249
  createThemeFromClientTheme(client && client.theme ? client.theme : {}, customTheme || {})
250
250
  );
251
251
  if (typeof withTheme === 'function') {
@@ -35,7 +35,7 @@ const styles = theme => ({
35
35
  bottom: 90,
36
36
  fontSize: 15,
37
37
  right: 200,
38
- color: theme.palette.primary.main,
38
+ color: '#ED1C29',
39
39
  [theme.breakpoints.down('xs')]: {
40
40
  left: 15,
41
41
  whiteSpace: 'nowrap',
@@ -30,7 +30,6 @@ import ReceiveOfferForm from '../ReceiveOfferForm';
30
30
  import AcceptDesign from '../AcceptDesign';
31
31
  import LoadingOverlay from '../../../../Framework/Components/LoadingOverlay';
32
32
  import { debounce } from '@material-ui/core';
33
- import AcceptPrivacy from '../AcceptPrivacy';
34
33
  const styles = theme => ({
35
34
  contentPositioning: {
36
35
  paddingLeft: 32,
@@ -281,7 +280,6 @@ class AmountPrice extends React.Component {
281
280
  AddToCartComponent: PropTypes.elementType,
282
281
  renderPriceBox: PropTypes.func,
283
282
  userComment: PropTypes.string,
284
- AcceptPrivacyComponent: PropTypes.elementType,
285
283
  };
286
284
 
287
285
  static defaultProps = {
@@ -298,7 +296,6 @@ class AmountPrice extends React.Component {
298
296
  NotificationComponent: Notification,
299
297
  PriceListComponent: PriceList,
300
298
  AddToCartComponent: AddToCart,
301
- AcceptPrivacyComponent: AcceptPrivacy,
302
299
  };
303
300
 
304
301
  state = {
@@ -312,7 +309,6 @@ class AmountPrice extends React.Component {
312
309
  },
313
310
  inView: true,
314
311
  showErrors: false,
315
- dataPrivacyAccepted: false,
316
312
  };
317
313
 
318
314
  componentDidUpdate(prevProps, prevState) {
@@ -352,7 +348,6 @@ class AmountPrice extends React.Component {
352
348
  verifyRequestErrors = () => {
353
349
  const { bulkNameErrors, displayAcceptDesign } = this.props;
354
350
  const designApproved = this.state.approval.value;
355
-
356
351
  if (bulkNameErrors && bulkNameErrors.length > 0) {
357
352
  this.setState({ showErrors: true });
358
353
  this.setState({ bulkNameErrors });
@@ -366,24 +361,12 @@ class AmountPrice extends React.Component {
366
361
  },
367
362
  });
368
363
  }
369
- if (!this.dataPrivacyApproved()) {
370
- this.setState({
371
- dataPrivacyAccepted: {
372
- value: false,
373
- error: true,
374
- },
375
- });
376
- }
377
364
  };
378
365
 
379
366
  requestHasErrors = () => {
380
367
  const { bulkNameErrors, displayAcceptDesign } = this.props;
381
368
  const designApproved = this.state.approval.value;
382
- if (
383
- (bulkNameErrors && bulkNameErrors.length > 0) ||
384
- (displayAcceptDesign && !designApproved) ||
385
- !this.dataPrivacyApproved()
386
- ) {
369
+ if ((bulkNameErrors && bulkNameErrors.length > 0) || (displayAcceptDesign && !designApproved)) {
387
370
  return true;
388
371
  }
389
372
  return false;
@@ -398,13 +381,6 @@ class AmountPrice extends React.Component {
398
381
  }
399
382
  };
400
383
 
401
- dataPrivacyApproved = () => {
402
- const { showReceiveOfferForm, clientTexts } = this.props;
403
- const { dataPrivacyLink } = clientTexts;
404
- const dataPrivacyApproved = this.state.dataPrivacyAccepted.value;
405
- return showReceiveOfferForm && dataPrivacyApproved && dataPrivacyLink;
406
- };
407
-
408
384
  handleTouchMove = (evt => {
409
385
  const dialogContent = this.dialogContentRef.current;
410
386
  evt.preventDefault();
@@ -483,15 +459,7 @@ class AmountPrice extends React.Component {
483
459
  };
484
460
 
485
461
  renderPriceOverview() {
486
- const {
487
- notice,
488
- showPriceOverview,
489
- approval,
490
- inView,
491
- showErrors,
492
- bulkNameErrors,
493
- dataPrivacyAccepted,
494
- } = this.state;
462
+ const { notice, showPriceOverview, approval, inView, showErrors, bulkNameErrors } = this.state;
495
463
  const {
496
464
  amount,
497
465
  priceList,
@@ -516,10 +484,9 @@ class AmountPrice extends React.Component {
516
484
  NotificationComponent,
517
485
  PriceListComponent,
518
486
  AddToCartComponent,
519
- AcceptPrivacyComponent,
520
487
  } = this.props;
521
488
 
522
- const { termsAndConditionsLink, dataPrivacyLink } = clientTexts;
489
+ const { termsAndConditionsLink } = clientTexts;
523
490
  const mergedNotifications = [...notifications] || [];
524
491
 
525
492
  if (showErrors && bulkNameErrors && bulkNameErrors.length > 0) {
@@ -586,18 +553,6 @@ class AmountPrice extends React.Component {
586
553
  />
587
554
  ) : null
588
555
  }
589
- acceptDataPrivacyComponent={
590
- showReceiveOfferForm && dataPrivacyLink ? (
591
- <AcceptPrivacyComponent
592
- dataPrivacyLink={dataPrivacyLink}
593
- displayAcceptDesign={true}
594
- handleChangeCheckboxApproval={this.handleChange}
595
- approval={dataPrivacyAccepted}
596
- closeProductOverviewDialog={this.handleClose}
597
- displayNote={false}
598
- />
599
- ) : null
600
- }
601
556
  notificationComponent={mergedNotifications.map(
602
557
  ({ message, level, color }, key) => {
603
558
  return (
@@ -48,7 +48,6 @@ class PriceOverview extends React.Component {
48
48
  showReceiveOfferForm: PropTypes.bool,
49
49
  amount: PropTypes.number,
50
50
  acceptDesignComponent: PropTypes.element,
51
- acceptDataPrivacyComponent: PropTypes.element,
52
51
  };
53
52
  render() {
54
53
  const {
@@ -64,7 +63,6 @@ class PriceOverview extends React.Component {
64
63
  showReceiveOfferForm,
65
64
  amount,
66
65
  acceptDesignComponent,
67
- acceptDataPrivacyComponent,
68
66
  } = this.props;
69
67
 
70
68
  return (
@@ -89,7 +87,6 @@ class PriceOverview extends React.Component {
89
87
  </Grid>
90
88
  <Grid item xs={12}>
91
89
  {acceptDesignComponent}
92
- {acceptDataPrivacyComponent}
93
90
  {amount > 0 && <Divider />}
94
91
  {priceListComponent}
95
92
  </Grid>
@@ -3,20 +3,20 @@
3
3
  exports[`renders correctly with approval 1`] = `
4
4
  Array [
5
5
  <div
6
- class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginDense MuiFormControl-fullWidth"
6
+ class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginNormal MuiFormControl-fullWidth"
7
7
  >
8
8
  <label
9
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
9
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
10
10
  data-shrink="false"
11
11
  >
12
12
  receiveOfferForm.email
13
13
  </label>
14
14
  <div
15
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
15
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
16
16
  >
17
17
  <input
18
18
  aria-invalid="false"
19
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
19
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
20
20
  name="email"
21
21
  type="text"
22
22
  value=""
@@ -36,20 +36,20 @@ Array [
36
36
  </div>
37
37
  </div>,
38
38
  <div
39
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
39
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
40
40
  >
41
41
  <label
42
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
42
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
43
43
  data-shrink="false"
44
44
  >
45
45
  receiveOfferForm.name
46
46
  </label>
47
47
  <div
48
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
48
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
49
49
  >
50
50
  <input
51
51
  aria-invalid="false"
52
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
52
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
53
53
  name="name"
54
54
  type="text"
55
55
  value=""
@@ -69,20 +69,20 @@ Array [
69
69
  </div>
70
70
  </div>,
71
71
  <div
72
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
72
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
73
73
  >
74
74
  <label
75
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
75
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
76
76
  data-shrink="false"
77
77
  >
78
78
  receiveOfferForm.company
79
79
  </label>
80
80
  <div
81
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
81
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
82
82
  >
83
83
  <input
84
84
  aria-invalid="false"
85
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
85
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
86
86
  name="company"
87
87
  type="text"
88
88
  value=""
@@ -102,20 +102,20 @@ Array [
102
102
  </div>
103
103
  </div>,
104
104
  <div
105
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
105
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
106
106
  >
107
107
  <label
108
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
108
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
109
109
  data-shrink="false"
110
110
  >
111
111
  receiveOfferForm.phonenumber
112
112
  </label>
113
113
  <div
114
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
114
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
115
115
  >
116
116
  <input
117
117
  aria-invalid="false"
118
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
118
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
119
119
  name="phonenumber"
120
120
  type="text"
121
121
  value=""
@@ -141,20 +141,20 @@ Array [
141
141
  class="MuiGrid-root ReceiveOfferForm-Grid-1 MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-4"
142
142
  >
143
143
  <div
144
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
144
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
145
145
  >
146
146
  <label
147
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
147
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
148
148
  data-shrink="false"
149
149
  >
150
150
  receiveOfferForm.zip
151
151
  </label>
152
152
  <div
153
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
153
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
154
154
  >
155
155
  <input
156
156
  aria-invalid="false"
157
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
157
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
158
158
  name="zip"
159
159
  type="text"
160
160
  value=""
@@ -178,20 +178,20 @@ Array [
178
178
  class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-8"
179
179
  >
180
180
  <div
181
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
181
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
182
182
  >
183
183
  <label
184
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
184
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
185
185
  data-shrink="false"
186
186
  >
187
187
  receiveOfferForm.city
188
188
  </label>
189
189
  <div
190
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
190
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
191
191
  >
192
192
  <input
193
193
  aria-invalid="false"
194
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
194
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
195
195
  name="city"
196
196
  type="text"
197
197
  value=""
@@ -213,20 +213,20 @@ Array [
213
213
  </div>
214
214
  </div>,
215
215
  <div
216
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
216
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
217
217
  >
218
218
  <label
219
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
219
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
220
220
  data-shrink="false"
221
221
  >
222
222
  receiveOfferForm.street
223
223
  </label>
224
224
  <div
225
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
225
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
226
226
  >
227
227
  <input
228
228
  aria-invalid="false"
229
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
229
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
230
230
  name="street"
231
231
  type="text"
232
232
  value=""
@@ -246,20 +246,20 @@ Array [
246
246
  </div>
247
247
  </div>,
248
248
  <div
249
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
249
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
250
250
  >
251
251
  <label
252
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
252
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
253
253
  data-shrink="false"
254
254
  >
255
255
  receiveOfferForm.country
256
256
  </label>
257
257
  <div
258
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
258
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
259
259
  >
260
260
  <input
261
261
  aria-invalid="false"
262
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
262
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
263
263
  name="country"
264
264
  type="text"
265
265
  value=""
@@ -284,20 +284,20 @@ Array [
284
284
  exports[`renders correctly without approval 1`] = `
285
285
  Array [
286
286
  <div
287
- class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginDense MuiFormControl-fullWidth"
287
+ class="MuiFormControl-root MuiTextField-root ReceiveOfferForm-MuiFormControlRoot-2 MuiFormControl-marginNormal MuiFormControl-fullWidth"
288
288
  >
289
289
  <label
290
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
290
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
291
291
  data-shrink="false"
292
292
  >
293
293
  receiveOfferForm.email
294
294
  </label>
295
295
  <div
296
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
296
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
297
297
  >
298
298
  <input
299
299
  aria-invalid="false"
300
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
300
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
301
301
  name="email"
302
302
  type="text"
303
303
  value=""
@@ -317,20 +317,20 @@ Array [
317
317
  </div>
318
318
  </div>,
319
319
  <div
320
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
320
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
321
321
  >
322
322
  <label
323
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
323
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
324
324
  data-shrink="false"
325
325
  >
326
326
  receiveOfferForm.name
327
327
  </label>
328
328
  <div
329
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
329
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
330
330
  >
331
331
  <input
332
332
  aria-invalid="false"
333
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
333
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
334
334
  name="name"
335
335
  type="text"
336
336
  value=""
@@ -350,20 +350,20 @@ Array [
350
350
  </div>
351
351
  </div>,
352
352
  <div
353
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
353
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
354
354
  >
355
355
  <label
356
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
356
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
357
357
  data-shrink="false"
358
358
  >
359
359
  receiveOfferForm.company
360
360
  </label>
361
361
  <div
362
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
362
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
363
363
  >
364
364
  <input
365
365
  aria-invalid="false"
366
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
366
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
367
367
  name="company"
368
368
  type="text"
369
369
  value=""
@@ -383,20 +383,20 @@ Array [
383
383
  </div>
384
384
  </div>,
385
385
  <div
386
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
386
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
387
387
  >
388
388
  <label
389
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
389
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
390
390
  data-shrink="false"
391
391
  >
392
392
  receiveOfferForm.phonenumber
393
393
  </label>
394
394
  <div
395
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
395
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
396
396
  >
397
397
  <input
398
398
  aria-invalid="false"
399
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
399
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
400
400
  name="phonenumber"
401
401
  type="text"
402
402
  value=""
@@ -422,20 +422,20 @@ Array [
422
422
  class="MuiGrid-root ReceiveOfferForm-Grid-1 MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-4"
423
423
  >
424
424
  <div
425
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
425
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
426
426
  >
427
427
  <label
428
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
428
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
429
429
  data-shrink="false"
430
430
  >
431
431
  receiveOfferForm.zip
432
432
  </label>
433
433
  <div
434
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
434
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
435
435
  >
436
436
  <input
437
437
  aria-invalid="false"
438
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
438
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
439
439
  name="zip"
440
440
  type="text"
441
441
  value=""
@@ -459,20 +459,20 @@ Array [
459
459
  class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-8"
460
460
  >
461
461
  <div
462
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
462
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
463
463
  >
464
464
  <label
465
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
465
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
466
466
  data-shrink="false"
467
467
  >
468
468
  receiveOfferForm.city
469
469
  </label>
470
470
  <div
471
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
471
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
472
472
  >
473
473
  <input
474
474
  aria-invalid="false"
475
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
475
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
476
476
  name="city"
477
477
  type="text"
478
478
  value=""
@@ -494,20 +494,20 @@ Array [
494
494
  </div>
495
495
  </div>,
496
496
  <div
497
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
497
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
498
498
  >
499
499
  <label
500
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
500
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
501
501
  data-shrink="false"
502
502
  >
503
503
  receiveOfferForm.street
504
504
  </label>
505
505
  <div
506
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
506
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
507
507
  >
508
508
  <input
509
509
  aria-invalid="false"
510
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
510
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
511
511
  name="street"
512
512
  type="text"
513
513
  value=""
@@ -527,20 +527,20 @@ Array [
527
527
  </div>
528
528
  </div>,
529
529
  <div
530
- class="MuiFormControl-root MuiTextField-root MuiFormControl-marginDense MuiFormControl-fullWidth"
530
+ class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
531
531
  >
532
532
  <label
533
- class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-marginDense MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
533
+ class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined ReceiveOfferForm-outlinedLabel-4"
534
534
  data-shrink="false"
535
535
  >
536
536
  receiveOfferForm.country
537
537
  </label>
538
538
  <div
539
- class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-marginDense MuiOutlinedInput-marginDense"
539
+ class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
540
540
  >
541
541
  <input
542
542
  aria-invalid="false"
543
- class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3 MuiInputBase-inputMarginDense MuiOutlinedInput-inputMarginDense"
543
+ class="MuiInputBase-input MuiOutlinedInput-input ReceiveOfferForm-outlinedInput-3"
544
544
  name="country"
545
545
  type="text"
546
546
  value=""