ordering-ui-external 14.1.44 → 14.1.45
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.
- package/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +1 -13
- package/_modules/themes/callcenterOriginal/src/components/AddressList/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Header/index.js +9 -1
- package/_modules/themes/callcenterOriginal/src/components/UserDetails/styles.js +3 -3
- package/package.json +1 -1
- package/src/themes/callcenterOriginal/src/components/AddressForm/index.js +0 -13
- package/src/themes/callcenterOriginal/src/components/AddressList/index.js +0 -1
- package/src/themes/callcenterOriginal/src/components/AddressList/styles.js +10 -4
- package/src/themes/callcenterOriginal/src/components/Header/index.js +6 -1
- package/src/themes/callcenterOriginal/src/components/UserDetails/styles.js +8 -2
|
@@ -7,13 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.AddressForm = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
|
|
10
|
-
var _CgSearchLoading = _interopRequireDefault(require("@meronex/icons/cg/CgSearchLoading"));
|
|
11
10
|
var _reactBootstrapIcons = require("react-bootstrap-icons");
|
|
12
11
|
var _styledComponents = require("styled-components");
|
|
13
12
|
var _reactHookForm = require("react-hook-form");
|
|
14
13
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
15
14
|
var _Confirm = require("../Confirm");
|
|
16
|
-
var _GoogleGpsButton = require("../../../../../components/GoogleGpsButton");
|
|
17
15
|
var _styles = require("./styles");
|
|
18
16
|
var _Buttons = require("../../styles/Buttons");
|
|
19
17
|
var _Inputs = require("../../styles/Inputs");
|
|
@@ -537,17 +535,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
537
535
|
defaultValue: formState !== null && formState !== void 0 && (_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.result ? formState === null || formState === void 0 || (_formState$result4 = formState.result) === null || _formState$result4 === void 0 || (_formState$result4 = _formState$result4.result) === null || _formState$result4 === void 0 ? void 0 : _formState$result4.address : (_formState$changes$ad5 = formState === null || formState === void 0 || (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.address) !== null && _formState$changes$ad5 !== void 0 ? _formState$changes$ad5 : addressValue,
|
|
538
536
|
autoComplete: "new-field",
|
|
539
537
|
countryCode: (configState === null || configState === void 0 || (_configState$configs5 = configState.configs) === null || _configState$configs5 === void 0 || (_configState$configs5 = _configState$configs5.country_autocomplete) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) || '*'
|
|
540
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
541
|
-
className: "gps-button",
|
|
542
|
-
apiKey: googleMapsApiKey,
|
|
543
|
-
onAddress: function onAddress(e) {
|
|
544
|
-
formMethods.setValue('address', e.address);
|
|
545
|
-
handleChangeAddress(e);
|
|
546
|
-
},
|
|
547
|
-
onError: setMapErrors,
|
|
548
|
-
IconButton: _reactBootstrapIcons.GeoAlt,
|
|
549
|
-
IconLoadingButton: _CgSearchLoading.default
|
|
550
|
-
})), ((addressState === null || addressState === void 0 || (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 || (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, {
|
|
538
|
+
}))), ((addressState === null || addressState === void 0 || (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 || (_formState$changes29 = formState.changes) === null || _formState$changes29 === void 0 ? void 0 : _formState$changes29.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, {
|
|
551
539
|
showMap: showMap || !showSpreadForm,
|
|
552
540
|
notUseCustomerInfo: notUseCustomerInfo,
|
|
553
541
|
addFormRestrictions: addFormRestrictions
|
|
@@ -30,7 +30,7 @@ var AddressItem = exports.AddressItem = _styledComponents.default.li(_templateOb
|
|
|
30
30
|
}, function (props) {
|
|
31
31
|
return props.theme.colors.lightGray;
|
|
32
32
|
});
|
|
33
|
-
var AddressItemActions = exports.AddressItemActions = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n a {\n display: flex;\n cursor: pointer;\n margin: 0px 5px;\n font-size: 20px;\n
|
|
33
|
+
var AddressItemActions = exports.AddressItemActions = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n a {\n display: flex;\n cursor: pointer;\n margin: 0px 5px;\n font-size: 20px;\n\n svg {\n color: #B1BCCC;\n }\n }\n a.disabled {\n svg {\n color: #CCC;\n }\n pointer-events: none;\n }\n"])));
|
|
34
34
|
var WrappNotAddresses = exports.WrappNotAddresses = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 270px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 80%;\n margin: 20px auto 10px;\n\n img {\n width: 200px;\n height: auto;\n aspect-ratio: attr(width) / attr(height)\n }\n h1 {\n margin: 5px 0px 0px;\n opacity: 0.5;\n text-align: center;\n font-size: 24px;\n }\n"])));
|
|
35
35
|
var FormActions = exports.FormActions = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding: 10px 0px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n button {\n height: 45px;\n flex: 1;\n\n &:last-child#second-btn {\n margin-left: 10px;\n ", "\n }\n }\n\n @media (min-width: 769px) {\n button {\n &:last-child#second-btn {\n margin-left: 25px;\n ", "\n }\n }\n }\n"])), function (props) {
|
|
36
36
|
var _props$theme3;
|
|
@@ -39,13 +39,13 @@ var FormActions = exports.FormActions = _styledComponents.default.div(_templateO
|
|
|
39
39
|
var _props$theme4;
|
|
40
40
|
return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-left: 0;\n margin-right: 25px;\n "])));
|
|
41
41
|
});
|
|
42
|
-
var ContinueButton = exports.ContinueButton = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: 100%;\n position: sticky;\n bottom: 1px;\n
|
|
42
|
+
var ContinueButton = exports.ContinueButton = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: 100%;\n position: sticky;\n bottom: 1px;\n\n button {\n width: 100%;\n white-space: nowrap;\n height: 50px;\n }\n"])));
|
|
43
43
|
var AddressTitle = exports.AddressTitle = _styledComponents.default.span(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n font-size: 16px;\n margin-bottom: 25px;\n text-align: left;\n ", "\n"])), function (props) {
|
|
44
44
|
var _props$theme5;
|
|
45
45
|
return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
|
|
46
46
|
});
|
|
47
47
|
var AddressHalfContainer = exports.AddressHalfContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
|
|
48
|
-
var List = exports.List = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: ", ";\n padding-right: 10px;\n ", "
|
|
48
|
+
var List = exports.List = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: ", ";\n padding-right: 10px;\n ", "\n ", "\n button {\n width: 100%;\n }\n"])), function (_ref2) {
|
|
49
49
|
var halfWidth = _ref2.halfWidth;
|
|
50
50
|
return halfWidth ? '50%' : '100%';
|
|
51
51
|
}, function (_ref3) {
|
|
@@ -66,7 +66,7 @@ var AddressFormContainer = exports.AddressFormContainer = _styledComponents.defa
|
|
|
66
66
|
return isEnableContinueButton && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n position: relative;\n bottom: 164px;\n "])));
|
|
67
67
|
});
|
|
68
68
|
var CloseIcon = exports.CloseIcon = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n cursor: pointer;\n svg{\n width: 30px;\n height: 30px;\n }\n"])));
|
|
69
|
-
var TitleFormContainer = exports.TitleFormContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: flex
|
|
69
|
+
var TitleFormContainer = exports.TitleFormContainer = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 7px;\n h1 {\n margin: auto;\n font-size: 24px;\n }\n\n @media (max-width: 930px) {\n h1 {\n font-size: 18px !important;\n }\n }\n"])));
|
|
70
70
|
var AddressHoverInfo = exports.AddressHoverInfo = _styledComponents.default.span(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n background: #FFE69C;\n border: 1px solid #FFF3CD;\n display: flex;\n padding: 8px;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n position: absolute;\n top: 0px;\n left: 25px;\n opacity: 0;\n width: max-content;\n p {\n margin: 0;\n color: #664D03;\n font-size: 12px;\n }\n\n"])));
|
|
71
71
|
var AddressBookMark = exports.AddressBookMark = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n span {\n opacity: 0;\n transition: opacity 0.3s, visibility 0.3s;\n\n }\n &:hover + span {\n opacity: 1;\n transition: opacity 0.3s, visibility 0.3s;\n }\n"])));
|
|
72
72
|
var AddressBookMarkContainer = exports.AddressBookMarkContainer = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n position: relative;\n"])));
|
|
@@ -188,6 +188,12 @@ var Header = exports.Header = function Header(props) {
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
+
var cutCharactersName = function cutCharactersName(_ref) {
|
|
192
|
+
var str = _ref.str,
|
|
193
|
+
_ref$maxSize = _ref.maxSize,
|
|
194
|
+
maxSize = _ref$maxSize === void 0 ? 8 : _ref$maxSize;
|
|
195
|
+
return str.length <= maxSize ? str : str.slice(0, maxSize) + '...';
|
|
196
|
+
};
|
|
191
197
|
(0, _react.useEffect)(function () {
|
|
192
198
|
if (isCustomerMode) {
|
|
193
199
|
setCustomerModalOpen(false);
|
|
@@ -228,7 +234,9 @@ var Header = exports.Header = function Header(props) {
|
|
|
228
234
|
onClick: function onClick(e) {
|
|
229
235
|
return handleClickUserCustomer(e);
|
|
230
236
|
}
|
|
231
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("p", null,
|
|
237
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("p", null, windowSize.width > 940 ? userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.name : cutCharactersName({
|
|
238
|
+
str: userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.name
|
|
239
|
+
}), ' ', windowSize.width > 940 ? userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.lastname : null)), /*#__PURE__*/_react.default.createElement("span", {
|
|
232
240
|
ref: clearCustomer
|
|
233
241
|
}, /*#__PURE__*/_react.default.createElement(_AiOutlineClose.default, null))), onlineStatus && windowSize.width > 820 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (isPreOrderSetting || (configState === null || configState === void 0 || (_configState$configs3 = configState.configs) === null || _configState$configs3 === void 0 || (_configState$configs3 = _configState$configs3.preorder_status_enabled) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value) === undefined) && /*#__PURE__*/_react.default.createElement(_styles.MomentMenu, {
|
|
234
242
|
onClick: (configState === null || configState === void 0 || (_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 || (_configState$configs4 = _configState$configs4.max_days_preorder) === null || _configState$configs4 === void 0 ? void 0 : _configState$configs4.value) === -1 || (configState === null || configState === void 0 || (_configState$configs5 = configState.configs) === null || _configState$configs5 === void 0 || (_configState$configs5 = _configState$configs5.max_days_preorder) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) === 0 ? null : function () {
|
|
@@ -10,11 +10,11 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var Container = exports.Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n"])), function (_ref) {
|
|
13
|
+
var Container = exports.Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n\n @media (max-width: 930px) {\n h1 {\n font-size: 18px !important;\n }\n }\n"])), function (_ref) {
|
|
14
14
|
var isEdit = _ref.isEdit;
|
|
15
15
|
return isEdit ? 'auto' : '145px';
|
|
16
16
|
});
|
|
17
|
-
var Header = exports.Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 5px;\n\n h1 {\n font-weight: 500;\n font-size: 20px;\n color: ", "
|
|
17
|
+
var Header = exports.Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 5px;\n\n h1 {\n font-weight: 500;\n font-size: 20px;\n color: ", ";\n margin: 0px 10px 0px 0px;\n ", "\n }\n\n svg {\n font-size: 24px;\n }\n\n svg.cancel {\n color: #D81212;\n cursor: pointer;\n }\n\n span {\n font-size: 13px;\n color: ", ";\n text-decoration: underline;\n cursor: pointer;\n user-select: none;\n }\n"])), function (props) {
|
|
18
18
|
return props.theme.colors.darkTextColor;
|
|
19
19
|
}, function (props) {
|
|
20
20
|
var _props$theme;
|
|
@@ -37,4 +37,4 @@ var TitleContainer = exports.TitleContainer = _styledComponents.default.div(_tem
|
|
|
37
37
|
return isAddressFormOpen && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n h1{\n width: 75%;\n }\n "])));
|
|
38
38
|
});
|
|
39
39
|
var CountryFlag = exports.CountryFlag = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-right: 5px;\n .PhoneInputCountryIcon {\n width: 25px;\n }\n .PhoneInputInput {\n display: none;\n }\n .PhoneInputCountrySelect {\n display: none;\n }\n"])));
|
|
40
|
-
var PhoneContainer = exports.PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n
|
|
40
|
+
var PhoneContainer = exports.PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n\n p {\n margin: 0;\n }\n"])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef } from 'react'
|
|
2
2
|
import Skeleton from 'react-loading-skeleton'
|
|
3
|
-
import CgSearchLoading from '@meronex/icons/cg/CgSearchLoading'
|
|
4
3
|
import {
|
|
5
4
|
Heart,
|
|
6
5
|
Building,
|
|
@@ -23,7 +22,6 @@ import {
|
|
|
23
22
|
useEvent
|
|
24
23
|
} from 'ordering-components-external'
|
|
25
24
|
import { Alert } from '../Confirm'
|
|
26
|
-
import { GoogleGpsButton } from '../../../../../components/GoogleGpsButton'
|
|
27
25
|
import {
|
|
28
26
|
FormControl,
|
|
29
27
|
FormActions,
|
|
@@ -458,17 +456,6 @@ const AddressFormUI = (props) => {
|
|
|
458
456
|
countryCode={configState?.configs?.country_autocomplete?.value || '*'}
|
|
459
457
|
/>
|
|
460
458
|
</WrapAddressInput>
|
|
461
|
-
<GoogleGpsButton
|
|
462
|
-
className='gps-button'
|
|
463
|
-
apiKey={googleMapsApiKey}
|
|
464
|
-
onAddress={(e) => {
|
|
465
|
-
formMethods.setValue('address', e.address)
|
|
466
|
-
handleChangeAddress(e)
|
|
467
|
-
}}
|
|
468
|
-
onError={setMapErrors}
|
|
469
|
-
IconButton={GeoAlt}
|
|
470
|
-
IconLoadingButton={CgSearchLoading}
|
|
471
|
-
/>
|
|
472
459
|
</AddressWrap>
|
|
473
460
|
)}
|
|
474
461
|
{(addressState?.address?.location || formState?.changes?.location) && (
|
|
@@ -105,7 +105,7 @@ export const AddressItemActions = styled.div`
|
|
|
105
105
|
cursor: pointer;
|
|
106
106
|
margin: 0px 5px;
|
|
107
107
|
font-size: 20px;
|
|
108
|
-
|
|
108
|
+
|
|
109
109
|
svg {
|
|
110
110
|
color: #B1BCCC;
|
|
111
111
|
}
|
|
@@ -175,7 +175,7 @@ export const ContinueButton = styled.div`
|
|
|
175
175
|
width: 100%;
|
|
176
176
|
position: sticky;
|
|
177
177
|
bottom: 1px;
|
|
178
|
-
|
|
178
|
+
|
|
179
179
|
button {
|
|
180
180
|
width: 100%;
|
|
181
181
|
white-space: nowrap;
|
|
@@ -204,7 +204,7 @@ export const List = styled.div`
|
|
|
204
204
|
margin-top: 0px;
|
|
205
205
|
` : css`
|
|
206
206
|
margin-top: 200px;
|
|
207
|
-
`}
|
|
207
|
+
`}
|
|
208
208
|
${({ addFormRestrictions }) => addFormRestrictions && css`
|
|
209
209
|
height: 405px;
|
|
210
210
|
`}
|
|
@@ -234,13 +234,19 @@ export const CloseIcon = styled.div`
|
|
|
234
234
|
`
|
|
235
235
|
|
|
236
236
|
export const TitleFormContainer = styled.div`
|
|
237
|
-
display: flex;
|
|
237
|
+
display: flex;
|
|
238
238
|
align-items: center;
|
|
239
239
|
margin-top: 7px;
|
|
240
240
|
h1 {
|
|
241
241
|
margin: auto;
|
|
242
242
|
font-size: 24px;
|
|
243
243
|
}
|
|
244
|
+
|
|
245
|
+
@media (max-width: 930px) {
|
|
246
|
+
h1 {
|
|
247
|
+
font-size: 18px !important;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
244
250
|
`
|
|
245
251
|
|
|
246
252
|
export const AddressHoverInfo = styled.span`
|
|
@@ -140,6 +140,8 @@ export const Header = (props) => {
|
|
|
140
140
|
events.emit('go_to_page', { page: 'business', params: { store: business.slug } })
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
const cutCharactersName = ({ str, maxSize = 8 }) => str.length <= maxSize ? str : str.slice(0, maxSize) + '...'
|
|
144
|
+
|
|
143
145
|
useEffect(() => {
|
|
144
146
|
if (isCustomerMode) {
|
|
145
147
|
setCustomerModalOpen(false)
|
|
@@ -177,7 +179,10 @@ export const Header = (props) => {
|
|
|
177
179
|
onClick={(e) => handleClickUserCustomer(e)}
|
|
178
180
|
>
|
|
179
181
|
<span>
|
|
180
|
-
<p>
|
|
182
|
+
<p>
|
|
183
|
+
{windowSize.width > 940 ? userCustomer?.name : cutCharactersName({ str: userCustomer?.name })}
|
|
184
|
+
{' '}{windowSize.width > 940 ? userCustomer?.lastname : null}
|
|
185
|
+
</p>
|
|
181
186
|
</span>
|
|
182
187
|
<span
|
|
183
188
|
ref={clearCustomer}
|
|
@@ -2,6 +2,12 @@ import styled, { css } from 'styled-components'
|
|
|
2
2
|
|
|
3
3
|
export const Container = styled.div`
|
|
4
4
|
height: ${({ isEdit }) => isEdit ? 'auto' : '145px'};
|
|
5
|
+
|
|
6
|
+
@media (max-width: 930px) {
|
|
7
|
+
h1 {
|
|
8
|
+
font-size: 18px !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
5
11
|
`
|
|
6
12
|
|
|
7
13
|
export const Header = styled.div`
|
|
@@ -13,7 +19,7 @@ export const Header = styled.div`
|
|
|
13
19
|
h1 {
|
|
14
20
|
font-weight: 500;
|
|
15
21
|
font-size: 20px;
|
|
16
|
-
color: ${props => props.theme.colors.darkTextColor};
|
|
22
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
17
23
|
margin: 0px 10px 0px 0px;
|
|
18
24
|
${props => props.theme?.rtl && css`
|
|
19
25
|
margin: 0px 0px 0px 10px;
|
|
@@ -114,7 +120,7 @@ export const PhoneContainer = styled.div`
|
|
|
114
120
|
display: flex;
|
|
115
121
|
align-items: center;
|
|
116
122
|
height: 30px;
|
|
117
|
-
|
|
123
|
+
|
|
118
124
|
p {
|
|
119
125
|
margin: 0;
|
|
120
126
|
}
|