@open-tender/utils 0.4.34 → 0.4.35
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.
|
@@ -43,7 +43,7 @@ const useSignUpForm = (loading, error, signUp, callback, checkConfig, hidePasswo
|
|
|
43
43
|
toRemove.push('company');
|
|
44
44
|
if (hidePassword)
|
|
45
45
|
toRemove.push('password');
|
|
46
|
-
if (optionalFields && !optionalFields.includes('birth_date')
|
|
46
|
+
if (optionalFields && !optionalFields.includes('birth_date'))
|
|
47
47
|
toRemove.push('birth_date');
|
|
48
48
|
if (optionalFields && !optionalFields.includes('gender'))
|
|
49
49
|
toRemove.push('gender');
|
|
@@ -81,7 +81,12 @@ const useSignUpForm = (loading, error, signUp, callback, checkConfig, hidePasswo
|
|
|
81
81
|
type: 'text',
|
|
82
82
|
required: companyRequired
|
|
83
83
|
},
|
|
84
|
-
{
|
|
84
|
+
{
|
|
85
|
+
label: 'Birth Date (mm/dd/yyyy)',
|
|
86
|
+
name: 'birth_date',
|
|
87
|
+
type: 'tel',
|
|
88
|
+
required: hasPunchh
|
|
89
|
+
},
|
|
85
90
|
{
|
|
86
91
|
label: 'Gender',
|
|
87
92
|
name: 'gender',
|
|
@@ -81,12 +81,12 @@ const makeLimitations = (item) => {
|
|
|
81
81
|
const comma = serviceType && orderType ? ', ' : '';
|
|
82
82
|
const dash = (serviceType || orderType) && channelType ? ' - ' : '';
|
|
83
83
|
if (serviceType || orderType || channelType) {
|
|
84
|
-
return `
|
|
85
|
-
${serviceType || ''}
|
|
86
|
-
${comma}
|
|
87
|
-
${orderType || ''}
|
|
88
|
-
${dash}
|
|
89
|
-
${channelType || ''}
|
|
84
|
+
return `
|
|
85
|
+
${serviceType || ''}
|
|
86
|
+
${comma}
|
|
87
|
+
${orderType || ''}
|
|
88
|
+
${dash}
|
|
89
|
+
${channelType || ''}
|
|
90
90
|
`;
|
|
91
91
|
}
|
|
92
92
|
return 'Valid on all online & app orders';
|
|
@@ -40,7 +40,7 @@ export const useSignUpForm = (loading, error, signUp, callback, checkConfig, hid
|
|
|
40
40
|
toRemove.push('company');
|
|
41
41
|
if (hidePassword)
|
|
42
42
|
toRemove.push('password');
|
|
43
|
-
if (optionalFields && !optionalFields.includes('birth_date')
|
|
43
|
+
if (optionalFields && !optionalFields.includes('birth_date'))
|
|
44
44
|
toRemove.push('birth_date');
|
|
45
45
|
if (optionalFields && !optionalFields.includes('gender'))
|
|
46
46
|
toRemove.push('gender');
|
|
@@ -78,7 +78,12 @@ export const useSignUpForm = (loading, error, signUp, callback, checkConfig, hid
|
|
|
78
78
|
type: 'text',
|
|
79
79
|
required: companyRequired
|
|
80
80
|
},
|
|
81
|
-
{
|
|
81
|
+
{
|
|
82
|
+
label: 'Birth Date (mm/dd/yyyy)',
|
|
83
|
+
name: 'birth_date',
|
|
84
|
+
type: 'tel',
|
|
85
|
+
required: hasPunchh
|
|
86
|
+
},
|
|
82
87
|
{
|
|
83
88
|
label: 'Gender',
|
|
84
89
|
name: 'gender',
|
|
@@ -77,12 +77,12 @@ export const makeLimitations = (item) => {
|
|
|
77
77
|
const comma = serviceType && orderType ? ', ' : '';
|
|
78
78
|
const dash = (serviceType || orderType) && channelType ? ' - ' : '';
|
|
79
79
|
if (serviceType || orderType || channelType) {
|
|
80
|
-
return `
|
|
81
|
-
${serviceType || ''}
|
|
82
|
-
${comma}
|
|
83
|
-
${orderType || ''}
|
|
84
|
-
${dash}
|
|
85
|
-
${channelType || ''}
|
|
80
|
+
return `
|
|
81
|
+
${serviceType || ''}
|
|
82
|
+
${comma}
|
|
83
|
+
${orderType || ''}
|
|
84
|
+
${dash}
|
|
85
|
+
${channelType || ''}
|
|
86
86
|
`;
|
|
87
87
|
}
|
|
88
88
|
return 'Valid on all online & app orders';
|
package/package.json
CHANGED